-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Change parent of resource will lead to AlreadyExists problem #8589
Comments
I moved the issue to pulumi/pulumi because I think it's not kubernetes-specific. |
@liubog2008 When you re-parented the ConfigMap, did you specify its alias when doing so? (see https://www.pulumi.com/blog/cumundi-guest-post/#find-relationships-between-resources for an example of doing this). |
No, I just add a parent. |
You'll need to |
It resolve my problem but is not elegant. We know kubernetes has a declarative API, but pulumi lets me back to write the imperative logic. In this case, I have to save some codes(alias) which may only be executed once. |
Thanks for confirming. Once the resource is migrated, you can remove the alias. For context, #458 has a lot of discussion on the design. Open to taking any feature requests on how you think this could be easier. |
Hello!
Issue details
Steps to reproduce
Expected:
Success to deploy configmap again in step 4.
Actual:
Have to recover manually.
The text was updated successfully, but these errors were encountered: