Kubectl delete but ignore ones with error
You can try using --ignore-not-found=true
flag in command
kubectl delete deployments --ignore-not-found=true -n ${namespace} --all --grace-period=10
You can try using --ignore-not-found=true
flag in command
kubectl delete deployments --ignore-not-found=true -n ${namespace} --all --grace-period=10