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

feat(google_container_node_pool): Handle nil mode in secondary boot disk. #18323

Conversation

modular-magician
Copy link
Collaborator

Fixes #17655

This PR is a follow up to GoogleCloudPlatform/magic-modules#10511, which added Terraform support for secondary boot disks in GKE. I discovered a bug when trying to create a node pool with "mode" not specified. Terraform throws a "panic: interface conversion: interface {} is nil, not map[string]interface {}" during the expandNodeConfig function. I pinpointed the error to the function's type assertion of the mode argument. This PR adds logic to bypass the type assertion when mode is nil.

Release Note Template for Downstream PRs (will be copied)

container: modify `node_config.secondary_boot_disks` logic in `google_container_node_pool` to handle nil mode

Derived from GoogleCloudPlatform/magic-modules#10854

…isk. (hashicorp#10854)

[upstream:042ce9a6893952685b18d666959ab533d0763420]

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit e459f92 into hashicorp:main Jun 4, 2024
4 checks passed
Copy link

github-actions bot commented Jul 7, 2024

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support secondary boot disks in Node Pool
1 participant