mercari/terraform-provider-spinnaker

Initialize the gate client on CRUD

KeisukeYamashita opened this issue · 1 comments

WHAT

As title. Lazy client initialize.

WHY

In initial Armory's Spinnaker Terraform Provider implementation, it depends on the spinnaker/spin.

If the tfstate has Spinnaker resource, on terraform plan, terraform will initialize the gateclient. However, on the initialize, the spin will try to access the the Spinnaker API.

If the provider can't access the Spinnaker API on terraform init that is okay.
We should avoid the CI to fail when we change the lab Spinnaker authn method.

No, this is not needed.