Skip to content

Commit 4841fe7

Browse files
bin: fix velero uninstall order
1 parent a528b24 commit 4841fe7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

scripts/clean-sc.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ if [ -n "${GATE_VALWEBHOOK}" ]; then
3333
"${here}/.././bin/ck8s" ops kubectl sc delete "${GATE_VALWEBHOOK}"
3434
fi
3535

36-
# Destroy all helm releases
37-
"${here}/.././bin/ck8s" ops helmfile sc -l app!=cert-manager destroy
38-
3936
# Makes sure to uninstall Velero properly: https://velero.io/docs/v1.13/uninstalling/
4037
"${here}/.././bin/ck8s" ops velero sc uninstall
4138

39+
# Destroy all helm releases
40+
"${here}/.././bin/ck8s" ops helmfile sc -l app!=cert-manager destroy
41+
4242
# Clean up namespaces and any other resources left behind by the apps
4343
"${here}/.././bin/ck8s" ops kubectl sc delete ns dex opensearch-system harbor fluentd-system gatekeeper-system thanos ingress-nginx monitoring kured falco velero
4444

scripts/clean-wc.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ fi
4545
# Might fail to be destroyed the first time, therefore run it once now
4646
"${here}/.././bin/ck8s" ops helmfile wc -l app=hnc destroy
4747

48-
# Destroy all helm releases
49-
"${here}/.././bin/ck8s" ops helmfile wc -l app!=cert-manager destroy
50-
5148
# Makes sure to uninstall Velero properly: https://velero.io/docs/v1.13/uninstalling/
5249
"${here}/.././bin/ck8s" ops velero wc uninstall
5350

51+
# Destroy all helm releases
52+
"${here}/.././bin/ck8s" ops helmfile wc -l app!=cert-manager destroy
53+
5454
# Clean up namespaces and any other resources left behind by the apps
5555
"${here}/.././bin/ck8s" ops kubectl wc delete ns alertmanager falco fluentd-system fluentd gatekeeper-system hnc-system ingress-nginx monitoring velero kured
5656

0 commit comments

Comments
 (0)