Skip to content

Commit de043bc

Browse files
authored
Merge pull request #1061 from snyk/fix/operator_tests
fix: operator upgrade tests
2 parents fd9fd6d + 5ef4902 commit de043bc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.circleci/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,10 @@ jobs:
610610
xargs '-I{}' kubectl get pod '{}' -n snyk-monitor -o 'jsonpath={..containers[*].image}' | \
611611
awk '{print $1}' | grep -oE "[0-9]{1}\.[0-9]{1,2}\.[0-9]{1,3}$")
612612
613+
if [[ -z "${VERSION}" ]]; then
614+
VERSION="0.0.0"
615+
fi
616+
613617
# Break out of the polling if the tag matches the one we want to upgrade to.
614618
if [[ "${VERSION}" == "${LATEST_TAG}" ]]; then
615619
break

.circleci/config/jobs/operator_upgrade_tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ steps:
185185
xargs '-I{}' kubectl get pod '{}' -n snyk-monitor -o 'jsonpath={..containers[*].image}' | \
186186
awk '{print $1}' | grep -oE "[0-9]{1}\.[0-9]{1,2}\.[0-9]{1,3}$")
187187
188+
if [[ -z "${VERSION}" ]]; then
189+
VERSION="0.0.0"
190+
fi
191+
188192
# Break out of the polling if the tag matches the one we want to upgrade to.
189193
if [[ "${VERSION}" == "${LATEST_TAG}" ]]; then
190194
break

0 commit comments

Comments
 (0)