-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Import Container Nodepool doesn't work with 4 parts as documented #2021
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
Comments
This quick patch is getting me past my problem. I don't know if it's actually a good idea or not.
|
Originally created in #1653 notifying @dtan4 and @danawillow based on that. (Hope that's ok) |
Actually looking at this a bit later, almost certainly what we want is a:
in |
I'm going to go ahead and close this as a duplicate of #1846, but thanks for the report! Just a note that if you do have a solution in mind, we'd be happy to look at a PR for it :) |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
The import documentation says we can import nodepools like:
I'm using the 4 part version and the import step completes successfully. Terraform then runs the exists check and in my case the
d.Id()
is:which when run through:
means that it's returning my cluster name instead of the nodepool name.
I can then see it try and check the existance of the nodepool:
which obviously fails and prevents my import from working. In my case I don't have a provider project configured so I can't use the 3 param form.
I'll investigate a little further, but somewhere along the line the ID you end up with from import is wrong - or the
getNodePoolName
function needs to be updated to support it. I'm not sure which direction you're going in here.I'm running master 65669fc.
The text was updated successfully, but these errors were encountered: