Skip to content

Commit 048a113

Browse files
authored
K8SPSMDB-909 - Automatically set OPERATOR_VERSION in e2e functions (#1310)
1 parent d881481 commit 048a113

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

e2e-tests/functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
GIT_COMMIT=$(git rev-parse HEAD)
44
GIT_BRANCH=${VERSION:-$(git rev-parse --abbrev-ref HEAD | sed -e 's^/^-^g; s^[.]^-^g;' | sed -e 's/_/-/g' | tr '[:upper:]' '[:lower:]')}
55
API="psmdb.percona.com/v1"
6-
OPERATOR_VERSION="1.15.0"
6+
OPERATOR_VERSION="$(yq eval '.spec.crVersion' $(realpath $test_dir/../../deploy/cr.yaml))"
77
IMAGE=${IMAGE:-"perconalab/percona-server-mongodb-operator:${GIT_BRANCH}"}
88
IMAGE_PMM=${IMAGE_PMM:-"perconalab/pmm-client:dev-latest"}
99
IMAGE_MONGOD=${IMAGE_MONGOD:-"perconalab/percona-server-mongodb-operator:main-mongod5.0"}

0 commit comments

Comments
 (0)