Commit 04e1ac2a authored by Albert Salim's avatar Albert Salim

Ignore not-found in kubectl delete

parent d97a015a
......@@ -75,7 +75,7 @@ function kubectl_cleanup_release() {
kubectl --namespace "${namespace}" get ingress,svc,pdb,hpa,deploy,statefulset,job,pod,secret,configmap,pvc,clusterrole,clusterrolebinding,role,rolebinding,sa,crd 2>&1 \
| grep "${release}" \
| awk '{print $1}' \
| xargs kubectl --namespace "${namespace}" delete \
| xargs kubectl --namespace "${namespace}" delete --ignore-not-found \
|| true
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment