Skip to content

Commit 104a806

Browse files
Merge pull request #1156 from snyk/test/fix-operator-upgrade-test
test: fix upgrade test failures
2 parents 82cf1d2 + 238e737 commit 104a806

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.circleci/config.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,8 @@ jobs:
523523
kubectl delete catalogsource snyk-operator -n openshift-marketplace
524524
kubectl delete clusterrolebinding snyk-monitor
525525
kubectl delete clusterrole snyk-monitor
526+
kubectl delete --all all,sa,cm,secret,pvc -n services
527+
kubectl delete --all all,sa,cm,secret,pvc -n snyk-monitor
526528
kubectl delete namespace services
527529
kubectl delete namespace snyk-monitor
528530
# Force a success status code, otherwise Bash will implicitly return the last command's code, which can be 1.
@@ -654,8 +656,10 @@ jobs:
654656
kubectl delete -f ./test/fixtures/operator/custom-resource.yaml
655657
kubectl delete clusterrolebinding snyk-monitor
656658
kubectl delete clusterrole snyk-monitor
657-
658-
kubectl delete ns snyk-monitor
659+
kubectl delete --all all,sa,cm,secret,pvc -n services
660+
kubectl delete --all all,sa,cm,secret,pvc -n snyk-monitor
661+
kubectl delete namespace snyk-monitor
662+
kubectl delete namespace services
659663
# Force a success status code, otherwise Bash will implicitly return the last command's code, which can be 1.
660664
true
661665
name: Cleanup

.circleci/config/jobs/operator_upgrade_tests.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ steps:
9898
kubectl delete catalogsource snyk-operator -n openshift-marketplace
9999
kubectl delete clusterrolebinding snyk-monitor
100100
kubectl delete clusterrole snyk-monitor
101+
kubectl delete --all all,sa,cm,secret,pvc -n services
102+
kubectl delete --all all,sa,cm,secret,pvc -n snyk-monitor
101103
kubectl delete namespace services
102104
kubectl delete namespace snyk-monitor
103105
# Force a success status code, otherwise Bash will implicitly return the last command's code, which can be 1.
@@ -237,8 +239,10 @@ steps:
237239
kubectl delete -f ./test/fixtures/operator/custom-resource.yaml
238240
kubectl delete clusterrolebinding snyk-monitor
239241
kubectl delete clusterrole snyk-monitor
240-
241-
kubectl delete ns snyk-monitor
242+
kubectl delete --all all,sa,cm,secret,pvc -n services
243+
kubectl delete --all all,sa,cm,secret,pvc -n snyk-monitor
244+
kubectl delete namespace snyk-monitor
245+
kubectl delete namespace services
242246
# Force a success status code, otherwise Bash will implicitly return the last command's code, which can be 1.
243247
true
244248

0 commit comments

Comments
 (0)