From a289b1c6450f7df4917d66e1620431fc693e96c3 Mon Sep 17 00:00:00 2001 From: JENNIFER RONDEAU Date: Wed, 21 Feb 2018 13:38:49 -0500 Subject: [PATCH] edit per comments Signed-off-by: JENNIFER RONDEAU --- docs/debugging-deletes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/debugging-deletes.md b/docs/debugging-deletes.md index b5fa1e6e1..f101c099c 100644 --- a/docs/debugging-deletes.md +++ b/docs/debugging-deletes.md @@ -9,7 +9,7 @@ To fix: 1. Run: ```bash - kubectl -n heptio-ark get backup -o json | jq -c -r $'.items[] | "kubectl -n heptio-ark patch backup/" + .metadata.name + " -p \'" + (({metadata: {finalizers: ( (.metadata.finalizers // []) - ["gc.ark.heptio.com"]), resourceVersion: .metadata.resourceVersion}}) | tostring) + "\' --type=merge"' + bash <(kubectl -n heptio-ark get backup -o json | jq -c -r $'.items[] | "kubectl -n heptio-ark patch backup/" + .metadata.name + " -p \'" + (({metadata: {finalizers: ( (.metadata.finalizers // []) - ["gc.ark.heptio.com"]), resourceVersion: .metadata.resourceVersion}}) | tostring) + "\' --type=merge"') ``` This command retrieves a list of backups, then generates and runs another list of commands that look like: @@ -35,7 +35,7 @@ The Ark team added the ability to delete backups by adding a **finalizer** to ea backup. When you request the deletion of an object that has at least one finalizer, Kubernetes sets the object's deletion timestamp, which indicates that the object is marked for deletion. However, it does not immediately delete the object. Instead, the object is deleted only when it no longer has -any finalizers. This means that something -- in this case, Ark, in this case -- must process the backup and then +any finalizers. This means that something -- in this case, Ark -- must process the backup and then remove the Ark finalizer from it. Ark versions earlier than v0.7.1 place the Ark server pod in the same namespace as backups, restores,