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

fix: apply on output changes #501

Merged
merged 5 commits into from
Jul 6, 2023
Merged

fix: apply on output changes #501

merged 5 commits into from
Jul 6, 2023

Conversation

leg100
Copy link
Owner

@leg100 leg100 commented Jul 5, 2023

OTF does not apply plans with only changed outputs. This PR fixes that.

Copy link
Contributor

@fsaintjacques fsaintjacques left a 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.

internal/run/phase.go Outdated Show resolved Hide resolved
@@ -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"`
Copy link
Contributor

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.

Copy link
Owner Author

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.

@leg100 leg100 merged commit 46cd3ef into master Jul 6, 2023
leg100 pushed a commit that referenced this pull request Jul 8, 2023
🤖 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>
leg100 pushed a commit that referenced this pull request Jul 8, 2023
🤖 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>
leg100 pushed a commit that referenced this pull request Jul 8, 2023
🤖 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>
@leg100 leg100 deleted the fix/apply-on-output-changes branch December 16, 2023 10:22
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