parent
bc77307d75
commit
a289b1c645
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue