Skip to content

Improve missing API group/kind message #144

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

Merged
merged 1 commit into from
Nov 1, 2021

Conversation

willthames
Copy link
Contributor

e.g. if trying to import a Deployment that was last configured
using extensions/v1beta1, the error message improves from:

Error: Cannot import non-existent remote object

While attempting to import an existing object to "kustomization_resource.p1["apps/Deployment/test-ns/test-deploy"]",
the provider detected that no object exists with the given id. Only pre-existing objects can be
imported; check that the id is correct and that it is associated with the provider's configured
region or endpoint, or use "terraform apply" to create a new remote object for this resource.

to:

Error: github.com/kbst/terraform-provider-kustomize/kustomize.kustomizationResourceExists: Can't find Deployment in API group extensions

e.g. if trying to import a Deployment that was last configured
using extensions/v1beta1, the error message improves from:

> Error: Cannot import non-existent remote object
>
> While attempting to import an existing object to "kustomization_resource.p1[\"apps/Deployment/test-ns/test-deploy\"]",
> the provider detected that no object exists with the given id. Only pre-existing objects can be
> imported; check that the id is correct and that it is associated with the provider's configured
>  region or endpoint, or use "terraform apply" to create a new remote object for this resource.

to:

> Error: github.com/kbst/terraform-provider-kustomize/kustomize.kustomizationResourceExists: Can't find Deployment in API group extensions
@pst pst merged commit 0892242 into kbst:master Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants