Spurious diffs after updating resource with SSA followed by CSA #2378
Labels
area/server-side-apply
impact/reliability
Something that feels unreliable or flaky
kind/bug
Some behavior is incorrect or out of spec
needs-repro
Needs repro steps before it can be triaged or fixed
resolution/fixed
This issue was fixed
What happened?
kubernetes:enableServerSideApply: "false"
)pulumi.com/patchFieldManager
andpulumi.com/patchForce
and metadata.labels...)ATTEMPTED (none of these fix it):
kubectl-client-side-apply
field manager viakubectl patch ...
and refreshedLEADING TO WORKAROUND:
I then poked around the state file and noticed that there is a diff between the
outputs.__inputs
field and the.inputs
field, it seems thatoutputs.__inputs
is not updated on a refresh as I would expect. I figured a hard refresh would fix it (deleting the state object and importing)WORKAROUND (until new fields are added again):
pulumi import
the object back so it has the exact same URNExpected Behavior
Assuming:
Then:
previewing with
kubernetes:enableServerSideApply: "false"
set should not provide a diffSteps to reproduce
kubernetes:enableServerSideApply: "false"
setkubernetes:enableServerSideApply: "true"
kubernetes:enableServerSideApply: "false"
Output of
pulumi about
CLI
Version 3.66.0
Go Version go1.20.3
Go Compiler gc
Plugins
NAME VERSION
python unknown
Host
OS darwin
Version 13.3.1
Arch arm64
This project is written in python: executable='/opt/homebrew/bin/python3' version='3.10.9
'
Current Stack: ...
TYPE URN
...
Found no pending operations associated with dev
Backend
Name ...
URL gs://...
User henry.peteet
Organizations
Dependencies:
NAME VERSION
iterm2 2.7.0
keyrings.google-artifactregistry-auth 1.1.0
pep440 0.1.2
pip 23.0.0
pyobjc 8.5.1
setuptools 65.6.3
wheel 0.38.4
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: