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 nodeConfigDefaults on cluster create. #20936

Conversation

modular-magician
Copy link
Collaborator

The expansion of
node_pool_defaults.node_config_defaults.insecure_kubelet_readonly_port_enabled should have a ForceSendFields to allow FALSE values to be propagated.

Without this "FALSE" values are not included in the request.

This is not an issue in nodePoolAutoConfig, or during updates. ForceSendFields is set in those cases.

An alternative fix is to use expandNodeKubeletConfig function here as well. The server will reject any values other than the readonly port field.

container: fixed propagation of `node_pool_defaults.node_config_defaults.insecure_kubelet_readonly_port_enabled` in node config.

Derived from GoogleCloudPlatform/magic-modules#12664

[upstream:462421d9d258748a5b6d6091254062fc248fd7f6]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician requested a review from a team as a code owner January 16, 2025 21:13
@modular-magician modular-magician merged commit e018d3a into hashicorp:main Jan 16, 2025
4 checks passed
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