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: Update instance template var.additional_disks to include all fields being passed to API #399

Merged

Conversation

tpdownes
Copy link
Member

This PR resolves #391 as I ran into a similar issue. This PR improves upon #392 by supporting all fields being set in the local.all_disks object. I have chosen to default to null for nearly every field to maintain backwards compatibility. I have added a couple exceptions where I think we can reasonably express an opinion, although I think a review/discussion is warranted.

Underlying issue: I read the main.tf code, and supplied source as a parameter to additional_disks and spent a couple hours debugging until I realized that Terraform was silently ingoring the extra field.

@tpdownes tpdownes requested a review from a team as a code owner April 19, 2024 13:57
@bharathkkb bharathkkb changed the title Update instance template var.additional_disks to include all fields being passed to API feat: Update instance template var.additional_disks to include all fields being passed to API Apr 19, 2024
Copy link
Member

@bharathkkb bharathkkb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @tpdownes

@bharathkkb
Copy link
Member

not marking as breaking as this already needed 1.3 due to

source_snapshot = optional(string)

@bharathkkb bharathkkb merged commit 73dc845 into terraform-google-modules:master Apr 19, 2024
4 checks passed
@tpdownes tpdownes deleted the fix_template_source branch April 19, 2024 15:36
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.

Add Support for the source_image field on additional_disks
2 participants