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.
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:
The solution would be to remove the code and let the provider fail afterwards if it's not able to connect to the cluster.