Skip to content

Fix GKE not being able to disable Cilium Policies #2889

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

Conversation

modular-magician
Copy link
Collaborator

Fixes: hashicorp/terraform-provider-google#19360

The issue was caused due to the 'omitempty' flag on the 'DesiredEnableCiliumClusterwideNetworkPolicy' attribute on the struct that builds the request on the library end. So I am forcing it to be sent whenever there is a change.

Other fields suffer of the same issue, but I believe this is something that this issues should be treated on a case basis.

Release Note Template for Downstream PRs (will be copied)

container: fixed issue which caused to not being able to disable `enable_cilium_clusterwide_network_policy` field on `google_container_cluster`.

Derived from GoogleCloudPlatform/magic-modules#11810

[upstream:dfbaea010475975440b815dfa12a3ec5b42e0114]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician requested a review from a team as a code owner October 3, 2024 16:11
@modular-magician modular-magician requested review from iyabchen and removed request for a team October 3, 2024 16:11
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 merged commit 44a352f into GoogleCloudPlatform:main Oct 3, 2024
3 of 5 checks passed
@modular-magician modular-magician deleted the downstream-pr-dfbaea010475975440b815dfa12a3ec5b42e0114 branch November 18, 2024 06:17
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.

Changing enable_cilium_clusterwide_network_policy from true to false does not work via terraform
1 participant