|
Hello everyone. I am having a problem with creating a patch to remove a field from bulk resources. As you can see, I try to remove the label |
Answered by
kferrone
Oct 22, 2025
Replies: 1 comment
|
Simply set it so it always exists first. Since you are deleting it setting it to na just ensures it exists before removing it. Also add will simply replace if the key exists without issue. - op: add
path: /metadata/labels/purpose
value: na
- op: remove
path: /metadata/labels/purpose |
0 replies
Answer selected by
ahd3r
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Simply set it so it always exists first. Since you are deleting it setting it to na just ensures it exists before removing it. Also add will simply replace if the key exists without issue.