-
Notifications
You must be signed in to change notification settings - Fork 44
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
fix: apply on output changes #501
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor comments, looks good.
@@ -13,7 +13,8 @@ const ( | |||
type ( | |||
// PlanFile represents the schema of a plan file | |||
PlanFile struct { | |||
ResourceChanges []ResourceChange `json:"resource_changes"` | |||
ResourceChanges []ResourceChange `json:"resource_changes"` | |||
OutputChanges map[string]Change `json:"output_changes"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why a map an not an array []OutputChange
like ResourceChanges
? I would go for consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because that's the schema of the plan file, I have no control over it.
🤖 I have created a release *beep* *boop* --- ## [0.0.51](v0.0.50...v0.0.51) (2023-07-08) ### Bug Fixes * apply on output changes ([#501](#501)) ([46cd3ef](46cd3ef)) * delete unreferenced tags ([#507](#507)) ([d85ac43](d85ac43)), closes [#502](#502) * finish events refactor ([#509](#509)) ([096933a](096933a)) * flaky browser tests ([#484](#484)) ([1ce0bd0](1ce0bd0)) * prevent empty owners team ([#499](#499)) ([a77c9e9](a77c9e9)) ### Miscellaneous * Bump default terraform version to v1.5.2 ([#503](#503)) ([67bc3f0](67bc3f0)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [0.0.51](v0.0.50...v0.0.51) (2023-07-08) ### Bug Fixes * apply on output changes ([#501](#501)) ([46cd3ef](46cd3ef)) * delete unreferenced tags ([#507](#507)) ([d85ac43](d85ac43)), closes [#502](#502) * finish events refactor ([#509](#509)) ([096933a](096933a)) * flaky browser tests ([#484](#484)) ([1ce0bd0](1ce0bd0)) * prevent empty owners team ([#499](#499)) ([a77c9e9](a77c9e9)) ### Miscellaneous * Bump default terraform version to v1.5.2 ([#503](#503)) ([67bc3f0](67bc3f0)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [0.0.51](v0.0.50...v0.0.51) (2023-07-08) ### Bug Fixes * apply on output changes ([#501](#501)) ([46cd3ef](46cd3ef)) * delete unreferenced tags ([#507](#507)) ([d85ac43](d85ac43)), closes [#502](#502) * finish events refactor ([#509](#509)) ([096933a](096933a)) * flaky browser tests ([#484](#484)) ([1ce0bd0](1ce0bd0)) * prevent empty owners team ([#499](#499)) ([a77c9e9](a77c9e9)) ### Miscellaneous * Bump default terraform version to v1.5.2 ([#503](#503)) ([67bc3f0](67bc3f0)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
OTF does not apply plans with only changed outputs. This PR fixes that.