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

Destroying the stack on resource manager fails #32

Open
shahriar-shafiullah opened this issue May 5, 2023 · 2 comments
Open

Destroying the stack on resource manager fails #32

shahriar-shafiullah opened this issue May 5, 2023 · 2 comments

Comments

@shahriar-shafiullah
Copy link

Created a stack with default settings using resource manager. The stack is created successfully but when we attempt to destroy it, we het the following error:

Error: Get "http://localhost/api/v1/namespaces/cluster-tools": dial tcp [::1]:80: connect: connection refused

@junior
Copy link
Member

junior commented May 5, 2023

You need to set the refresh=false. This is due a limitation on the Kubernetes Provider.

On the ORM, when destroying, you need to uncheck the "Refresh resource states before checking for differences.

image

This happens because the Terraform Kubernetes provider tries to execute the Kubernetes operations (like helm delete metrics-server) before execute the oci kubeconfig resource, not populating the Kubernetes endpoint address in time. This is an issue open with Terraform for some time now. A possible workaround is coming.

@junior
Copy link
Member

junior commented May 19, 2023

@shahriar-shafiullah did this fixed your issue?

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

No branches or pull requests

2 participants