File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ set -euo pipefail
66
77knownNamespaces=(
88 # keep-sorted start
9+ " continuum-*"
910 " csi-system"
1011 " default"
1112 " gpu-operator"
@@ -16,12 +17,21 @@ knownNamespaces=(
1617 " maintenance-cleanup"
1718 " maintenance-namespace-cleanup"
1819 " maintenance-nix-gc"
20+ " privatemode-*"
1921 # keep-sorted end
2022)
2123
2224kubectl get namespaces --no-headers | while read -r ns _; do
23- if [[ " ${knownNamespaces[*]} " == * " $ns " * ]]; then
24- echo " Skipping known namespace: $ns "
25+ skip=false
26+ for pattern in " ${knownNamespaces[@]} " ; do
27+ # shellcheck disable=SC2053 # We want glob matching here
28+ if [[ $ns == $pattern ]]; then
29+ echo " Skipping known namespace: $ns "
30+ skip=true
31+ break
32+ fi
33+ done
34+ if [[ $skip == true ]]; then
2535 continue
2636 fi
2737
You can’t perform that action at this time.
0 commit comments