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

Provider fails during plan if cluster is not existing #26

Open
fciava opened this issue Mar 23, 2023 · 0 comments
Open

Provider fails during plan if cluster is not existing #26

fciava opened this issue Mar 23, 2023 · 0 comments

Comments

@fciava
Copy link

fciava commented Mar 23, 2023

Hello,
there's a problem on using the provider in a Terraform code that also deploys the Kubernetes cluster.
The provider pings the cluster during the configure phase (which happens during the plan), obviously if the cluster itself doesn't exists the provider exit with error and the plan fails.

The issue is generated by this code:

// test the connection and return and error if there's an issue
_, err := newAWX.PingService.Ping()
if err != nil {
	return nil, err
}

The solution would be to remove the code and let the provider fail afterwards if it's not able to connect to the cluster.

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

1 participant