Skip to content

Feature Request: defer connecting to gate client until necessary #44

@dpkirchner

Description

@dpkirchner

While bootstrapping a new project that defines some spinnaker resources, you will see errors when the spinnaker provider initializes during a plan. That's because it tries to connect immediately, before spinnaker has been installed. This means you have to comment out all of the spinnaker provider+resources before you can begin.

IMO, it'd be useful to defer the connection until the resource is about to be created. An error will likely still occur as the provider may not be able to connect to the server (it takes a while for spinnaker to start), but at least the plan and apply-sans-spinnaker steps will run.

I'll submit a PR for this shortly. I've been using it for about a week while destroying/recreating my projects and other than the above mentioned error it works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions