Cannot delete labels or annotations in ObjectMetaPatch
#2887
Labels
area/codegen
impact/usability
Something that impacts users' ability to use the product easily and intuitively
kind/bug
Some behavior is incorrect or out of spec
What happened?
According to the documentation, one can set label item to
undefined
to delete it. However thelabels
field inObjectMetaPatch
does not allowundefined
.Source: https://github.com/pulumi/pulumi-kubernetes/blob/master/sdk/nodejs/types/input.ts#L25419
Same goes to the
annotations
field.I've tested by manually adding
| undefined
to the definitions of the two fields, you can set them asundefined
andpulumi up
successfully deletes the fields from kubernetes.Example
See documentation link above.
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: