You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to do this as a protection from accidental delete of the resource or whole namespace with this resource no matter how. in the repo or with kubectl.
So it will require manual action (remove finalizer) to really delete resources.
tried:
1 single volume.yaml:
result: works as expected and volume-0 has two finalizers: [kubernetes, kubernetes.io/pvc-protection]
But I already have resources that I want to change this way, so trying further steps.
3. first commit volume.yaml, second commit kustomization.yaml
result: doesn't work. volume-0 has only default finalizer.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to do this as a protection from accidental delete of the resource or whole namespace with this resource no matter how. in the repo or with kubectl.
So it will require manual action (remove finalizer) to really delete resources.
tried:
1 single volume.yaml:
result: volume-0 has only default finalizers value [kubernetes.io/pvc-protection]
2. volume.yaml + kustomization.yaml
volume.yaml:
kustomization.yaml:
result: works as expected and volume-0 has two finalizers: [kubernetes, kubernetes.io/pvc-protection]
But I already have resources that I want to change this way, so trying further steps.
3. first commit volume.yaml, second commit kustomization.yaml
result: doesn't work. volume-0 has only default finalizer.
also tried to change the patch to replace:
doesn't help
Beta Was this translation helpful? Give feedback.
All reactions