-
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
Changes made by Rancher outside of Pulumi are not detected by Pulumi #641
Comments
Do you mean it sometimes works but other times doesn't? That would be very unexpected!
That is definitely a bug. |
What versions of the Pulumi CLI and |
I'm using pulumi v0.17.22 and @pulumi/kubernetes 0.25.2 |
I did some more testing.
Pulumi refresh notices the change and subsequent updates work as expected. If however I edit the service using rancher, pulumi refresh still picks up the change, but doesn't modify the stack's state in such a way that subsequent updates overwrite it. It looks like the rancher update does not overwrite the last-applied-configuration
|
Thanks @aeb-sia. I've updated the title to match the details of your investigation. cc @hausdorff for thoughts on this as well. |
This is a bit surprising... I would have expected that the three-way-merge logic used in As an aside, I'm glad that we've found a tool that does not update that annotation, as it should make these scenarios much easier to test. |
Talking to @lukehoban again, let's move this back provisionally to Q3. I'll take some time in the next couple days to dig in a bit at the intersection of diff and refresh to build more confidence that this works as expected. @aeb-sia in the mean time, do you have a list of specific steps you took to arrive in this situation? It would be very nice to have a repro. |
@hausdorff create the service as described above then change the port in rancher. |
Haven't had time to look into this further, so bumping to M26 |
Reproduced the underlying issue in #694. This does work properly with the dryRun-based diff behavior, but it was causing some other stability problems, so it's disabled by default for now. After it stabilizes, it will become the new default. If you want to try it out, you can set the const provider = new k8s.Provider("foo", {enableDryRun: true}); |
This should be fixed with the |
Creating a service like so:
after updating the service over another channel to
targetPort: 8081
pulumi doesn't detect the change. Refresh appears to sometimes notice, but following updates don't restore the targetPort to 8080
The text was updated successfully, but these errors were encountered: