Skip to content
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

Importing existing kube clusters seems to be forbidden #14

Closed
pratikmallya opened this issue Sep 26, 2018 · 5 comments
Closed

Importing existing kube clusters seems to be forbidden #14

pratikmallya opened this issue Sep 26, 2018 · 5 comments
Assignees
Labels
bug Something isn't working P2 high priority issues triaged Scoped and ready for work

Comments

@pratikmallya
Copy link
Contributor

importing clusters seems to fail with this error:

terraform import module.prod_cluster.google_container_cluster.primary $PROJECT/$REGION/$CLUSTER

Error: Provider "kubernetes" depends on non-var "local.cluster_endpoint". Providers for import can currently
only depend on variables or must be hardcoded. You can stop import
from loading configurations by specifying `-config=""`.

This is a huge problem because it breaks the terraform import functionality

@morgante
Copy link
Contributor

This is unfortunately because we initialize the kubernetes provider for you.

Can you get around it by specifying -config=""?

@aaron-lane
Copy link
Contributor

Hi @pratikmallya.

I'm closing this issue due to a lack of activity. Please reopen it if you would like to continue the discussion.

@Nosmoht
Copy link

Nosmoht commented May 17, 2019

Can we reopen the issue? I've the same problem. Using -config="" doesnt help at all.

@evkuzin
Copy link

evkuzin commented Sep 23, 2019

Check this PR
Looks working and it fix this issue

@bharathkkb
Copy link
Member

provider configs removed by #777

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P2 high priority issues triaged Scoped and ready for work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants