-
|
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 |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
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.