-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deployment resource state does not update #3026
Comments
Thanks for reporting this issue @soujiro32167. I am able to reproduce this. Note that the same issue also exists for ConfigMaps if we set CMs to be mutable within our k8s provider setup. The issue doesn't exist for CMs in the repro, since our provider is doing a replacement, which goes through a different flow for saving state compared to an update flow. The bug most likely is being triggered here:
We should store
|
### Proposed changes Always store `newInputs` to avoid spurious diffs in renderYaml updates. Storing `oldLive` in state will result in the Pulumi state never updating after the initial create. Testing: added a new step within the `TestRenderYAML` that exercises the update flow. This test fails without the changes in this PR. ### Related issues (optional) Fixes: #3026
Thank you! |
This issue has been addressed in PR #3030 and shipped in release v4.13.1. |
What happened?
Using a kubernetes provider with
renderYamlToDirectory
, I want to create a deployment and configmap.The resources get created successfully. After a second
pulumi up
, no changes are observed.However, after updating the deployment, the pulumi state will not update. Updating the configmap works fine
To reproduce:
pulumi up -s repro
containerPort: 9090
pulumi up -s repro --diff
shows the diff correctlyyes
to apply the changespulumi up -s repro --diff
shows the same diff, even though the change was already appliedNote: the yaml
yamls/apps_v1-deployment-myns-my-deployment.yaml
gets updated correctlyExample
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: