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

Only set enabled bool if evaluation mode is unspecified #6785

Conversation

modular-magician
Copy link
Collaborator

Remove enable_binary_authorization conditional, this was missed in #8784.

Fixes hashicorp/terraform-provider-google#16759

container: fixed an issue in which migrating from the deprecated Binauthz enablement bool to the new evaluation mode enum inadvertently caused two cluster update events, instead of none.

Derived from GoogleCloudPlatform/magic-modules#9629

* Only set enabled bool if evaluation mode is unspecified

* Only trigger one cluster update event if both both legacy  and  struct blocks have diffs.

* remove inadvertant modifications

* Pass legacy bool to expandBinaryAuthorization fn

* move fn for diff readability

* reformat

* reformat

* Only get enable_binary_authorization if its been changed

* remove commas

* fix logic

* Remove enable_binary_authorization condition

* Add upgrade path docs

* Add comma

* Update mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown

---------

Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
[upstream:c1e45b10619f22ab5dff5d29f5b429a787389f45]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician merged commit 9db20ba into hashicorp:main Dec 20, 2023
4 checks passed
@modular-magician modular-magician deleted the downstream-pr-c1e45b10619f22ab5dff5d29f5b429a787389f45 branch November 16, 2024 03:48
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.

Bad deprecation on google_container_cluster.binary_authorization.enabled
1 participant