-
Notifications
You must be signed in to change notification settings - Fork 104
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
Cannot import CRD definition #158
Comments
I have a similar problem, except I get an Unauthorized (but I am able to otherwise manage the cluster resources). Trying to do terraform import -var-file=env/${ENVIRONMENT}.tfvars 'kubectl_manifest.grafana_operator_crds["grafanadashboards"]' apiextensions.k8s.io/v1//CustomResourceDefinition//grafanadashboards.integreatly.org The error:
And I can see the resource exists: kubectl get crd grafanadashboards.integreatly.org -o jsonpath='{.apiVersion}:{.metadata.name}'
apiextensions.k8s.io/v1:grafanadashboards.integreatly.org |
I managed to resolve my issue with this: hashicorp/terraform-provider-kubernetes#918 (comment) |
Had the same problem where I received an error that the resource that I was trying to import does not exist. After trying it with a slightly different command I actually got an helpful error back: So after adjusting the ID accordingly the import was finally successful 🙌
I'm assuming by default it looks for the resource in the |
I cannot import an existing resource in my state using the provided documentation:
As you can see, it says that the rabbitmqclusters.rabbitmq.com crd does not exist, but it does:
The text was updated successfully, but these errors were encountered: