Issue with DaemonSetPatch failing with invalid value error message #2692
Labels
customer/feedback
Feedback from customers
customer/lighthouse
Lighthouse customer bugs and enhancements
kind/bug
Some behavior is incorrect or out of spec
resolution/fixed
This issue was fixed
What happened?
When attempting to use DaemonSetPatch on pulumi-kubernetes
v4.5.5
I am hitting an errorDaemonSet.apps "kube-proxy" is invalid: [spec.template.metadata.labels: Invalid value: map[string]string(nil): selector does not match template labels, spec.selector: Invalid value: "null": field is immutable]
with annotations for both field manager and force patch set.Example
Repo with observed behavior
pulumi up
to trigger an update. It will fail, but the pulumi-kubernetes manager will take ownership fields previously managed bykubectl-client-side-apply
Output of
pulumi about
Additional context
There isn't a way for the kubernetes provider to correctly unclaim fields inadvertently taken control by the Patch resource in the past versions. So once encountered, the error must be resolved through ignoreChanges, creating a new fieldManager, or manually manipulating the kubernetes manifest.
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: