Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Commit

Permalink
Patch kuttl test to work with releases (#307)
Browse files Browse the repository at this point in the history
Patch kuttl test to work with releases
  • Loading branch information
fdehay authored May 5, 2021
1 parent 20fc519 commit 8851139
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,7 @@ endif
BASEVERSION := $(shell awk -F\" '/Version =/ { print $$2}' version/version.go)
# Version is for binary, docker image and helm

ifdef CIRCLE_TAG
VERSION := ${BRANCH}
else
VERSION := $(BASEVERSION)-${BRANCH}
endif
VERSION := ${BRANCH}

HELM_VERSION := $(shell cat helm/cassandra-operator/Chart.yaml| grep version | awk -F"version: " '{print $$2}')
HELM_TARGET_DIR ?= docs/helm
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/kuttl/ScaleUpAndDown/00-createCluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: TestStep
commands:
- script: |
BASEDIR=../../../..
VERSION=$(awk -F\" '/Version =/ {print $2}' $BASEDIR/version/version.go)-$CIRCLE_BRANCH
VERSION=$([ -n "$CIRCLE_TAG" ] && echo $CIRCLE_TAG || echo $CIRCLE_BRANCH)
helm install casskop $BASEDIR/helm/cassandra-operator --set image.tag=$VERSION --namespace $NAMESPACE
---
apiVersion: db.orange.com/v1alpha1
Expand All @@ -27,4 +27,4 @@ spec:
dc:
- name: dc1
rack:
- name: rack1
- name: rack1

0 comments on commit 8851139

Please sign in to comment.