Skip to content

Provider fails during plan if cluster is not existing #26

@fciava

Description

@fciava

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions