KubeZero/charts/kubezero/scripts/remove_argo_ns.sh

8 lines
194 B
Bash
Raw Permalink Normal View History

2020-12-01 15:46:04 +00:00
#!/bin/bash
ns=$(kubectl get ns -l argocd.argoproj.io/instance | grep -v NAME | awk '{print $1}')
for n in $ns; do
kubectl label --overwrite namespace $n 'argocd.argoproj.io/instance-'
done