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

container: make cpu_manager_policy optional in kubelet_config #8171

Conversation

modular-magician
Copy link
Collaborator

Part of hashicorp/terraform-provider-google#19225

This should resolve some confusing behavior with cpu_manager_policy

  • It frequently will show a permadrift when it can't be set
  • It also doesn't seem to accept the documented value of "none" as an empty value, though the previously undocumented empty string ("") seems to work.

GoogleCloudPlatform/magic-modules@efb71a9#r458238583
GoogleCloudPlatform/magic-modules@efb71a9#r473173480
☝️ context on when it was originally marked Required

This doesn't resolve all of the issues, but resolves other issues where it must be set where it's not actually needed (for example, if insecure_kubelet_readonly_port_enabled is set).

It appears that it was marked as Required somewhat arbitrarily (see above), and it's also possible that some of what's in place is tied to an API level bug that may have since been resolved. Maybe we could require at last one instead -- happy to do that if there's a good example to follow.

I did come across hashicorp/terraform-provider-google#15767 while testing this, but I think this is neutral as far as that goes.

Release Note Template for Downstream PRs (will be copied)

container: make `cpu_manager_policy` optional in `kubelet_config`

Derived from GoogleCloudPlatform/magic-modules#11572

…1572)

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

[upstream:c920b8fc0cd06c1450c7da57434418b1fa307ebc]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician merged commit 027e836 into hashicorp:main Sep 12, 2024
4 checks passed
@modular-magician modular-magician deleted the downstream-pr-c920b8fc0cd06c1450c7da57434418b1fa307ebc branch November 16, 2024 04:59
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.

1 participant