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 #1815

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 requested a review from a team as a code owner December 20, 2023 19:06
@modular-magician modular-magician requested review from roaks3 and removed request for a team December 20, 2023 19:06
@modular-magician modular-magician merged commit 1b9b4b2 into GoogleCloudPlatform:main Dec 20, 2023
4 checks passed
Copy link

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@modular-magician modular-magician deleted the downstream-pr-c1e45b10619f22ab5dff5d29f5b429a787389f45 branch November 18, 2024 07:35
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