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

feat: add spinnaker_pipeline_template_v2 resource #13

Merged
merged 2 commits into from
Jun 1, 2021

Conversation

martinohmann
Copy link
Member

@martinohmann martinohmann commented May 26, 2021

Notable changes:

  • add ResponseError to make working with API errors easier
  • add validation to the template field of the new
    spinnaker_pipeline_template_v2 resource to catch common issues on
    terraform plan
  • tests for error impl and parsing/validation logic

More tests require general changes to the way the API client is
instantiated and passed around. This is out of scope here and will be
addressed in a separate change.

Note that other API calls now could also benefit from ResponseError
to simplify the code but changing this is out of scope of this change as well.

@martinohmann martinohmann force-pushed the pipeline-template-v2 branch 7 times, most recently from 976a924 to 3143cf2 Compare May 27, 2021 10:17
@martinohmann martinohmann marked this pull request as ready for review May 27, 2021 10:22
Notable changes:

- add `ResponseError` to make working with API errors easier
- add validation to the `template` field of the new
  `spinnaker_pipeline_template_v2` resource to catch common issues on
  `terraform plan`
- tests for error impl and parsing/validation logic

More tests require general changes to the way the API client is
instantiated and passed around. This is out of scope here and will be
addressed in a separate change.
@martinohmann martinohmann merged commit c20e8f8 into master Jun 1, 2021
@martinohmann martinohmann deleted the pipeline-template-v2 branch June 1, 2021 13:02
martinohmann added a commit that referenced this pull request Jul 6, 2021
This adjusts the pipelines API to make use of the `ResponseError`
implementation added in
#13.

Furthermore it fixes a bug where non-existent pipelines produce errors
although terraform should just recreate them.
martinohmann added a commit that referenced this pull request Jul 6, 2021
This adjusts the pipelines API to make use of the `ResponseError`
implementation added in
#13.

Furthermore it fixes a bug where non-existent pipelines produce errors
although terraform should just recreate them.
martinohmann added a commit that referenced this pull request Jul 6, 2021
This adjusts the pipelines API to make use of the `ResponseError`
implementation added in
#13.

Furthermore it fixes a bug where non-existent pipelines produce errors
although terraform should just recreate them.
martinohmann added a commit that referenced this pull request Jul 6, 2021
This adjusts the pipelines API to make use of the `ResponseError`
implementation added in
#13.

Furthermore it fixes a bug where non-existent pipelines produce errors
although terraform should just recreate them.
martinohmann added a commit that referenced this pull request Jul 6, 2021
This adjusts the pipelines API to make use of the `ResponseError`
implementation added in
#13.

Furthermore it fixes a bug where non-existent pipelines produce errors
although terraform should just recreate them.
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

Successfully merging this pull request may close these issues.

2 participants