Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Unverified Commit 67555ff1 authored by Idriss's avatar Idriss
Browse files

Skip the first line and missing -

parent a4cd2a7b
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,11 @@ CRD="perconaservermongodbbackups.psmdb.percona.com" ...@@ -5,7 +5,11 @@ CRD="perconaservermongodbbackups.psmdb.percona.com"
K8S_CLI="kubectl" K8S_CLI="kubectl"
"${K8S_CLI}" -n "${NS}" get "${CRD}" | while read name trash; do "${K8S_CLI}" -n "${NS}" get "${CRD}" | while read name trash; do
if [[ $name == "NAME" ]]; then
continue
fi
echo "Deleting ${name}" echo "Deleting ${name}"
"${K8S_CLI}" -n "${NS}" get "${CRD}" "${name}" -o yaml | yq e ".metadata.finalizers = []" | kubectl -n "${NS}" apply -f - "${K8S_CLI}" -n "${NS}" get "${CRD}" "${name}" -o yaml | yq e ".metadata.finalizers = []" - | kubectl -n "${NS}" apply -f -
"${K8S_CLI}" -n "${NS}" delete "${CRD}" "${name}" >/dev/null 2>&1 || : "${K8S_CLI}" -n "${NS}" delete "${CRD}" "${name}" >/dev/null 2>&1 || :
done done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment