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

update vm-instance module to support TPG v6 #3166

Conversation

RachaelSTamakloe
Copy link
Collaborator

@RachaelSTamakloe RachaelSTamakloe commented Oct 24, 2024

This PR does the following:

  • Removes the upper version constraint on vm-instance module to allow use of TPG v6
  • reverts modifications made to guest accelerator in commit ca66b8c and defines guest_accelerator as a block

Submission Checklist

NOTE: Community submissions can take up to 2 weeks to be reviewed.

Please take the following actions before submitting this pull request.

  • Fork your PR branch from the Toolkit "develop" branch (not main)
  • Test all changes with pre-commit in a local branch #
  • Confirm that "make tests" passes all tests
  • Add or modify unit tests to cover code changes
  • Ensure that unit test coverage remains above 80%
  • Update all applicable documentation
  • Follow Cluster Toolkit Contribution guidelines #

@RachaelSTamakloe RachaelSTamakloe added the release-version-updates Added to release notes under the "Version Updates" heading. label Oct 24, 2024
@tpdownes tpdownes self-requested a review October 25, 2024 15:15
tpdownes
tpdownes previously approved these changes Oct 25, 2024
Copy link
Member

@tpdownes tpdownes left a comment

Choose a reason for hiding this comment

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

Please modify the title/description of PR as discussed offline.

@tpdownes tpdownes dismissed their stale review October 25, 2024 15:42

Took a second look and have concerns

@tpdownes tpdownes self-requested a review October 25, 2024 15:42
Copy link
Member

@tpdownes tpdownes left a comment

Choose a reason for hiding this comment

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

Shouldn't you be reverting the change made to gpu_definition.tf in ca66b8c?

@RachaelSTamakloe RachaelSTamakloe changed the title removing upper version constraint on vm-instance module, and defining… update vm-instance module to support TPG v6 Oct 25, 2024
@tpdownes tpdownes self-requested a review October 25, 2024 17:26
Copy link
Member

@tpdownes tpdownes left a comment

Choose a reason for hiding this comment

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

I performed a review tracing all use of guest_accelerator down to where the variable is really used. In most cases it traces to an instance template module. e.g.

https://github.com/terraform-google-modules/terraform-google-vm/blob/v10.1.1/modules/instance_template/main.tf

In each case, a dynamic guest_accelerator block is used in a TPG v6 forward-compatible way.

@RachaelSTamakloe RachaelSTamakloe merged commit ee9985d into GoogleCloudPlatform:develop Oct 25, 2024
10 of 56 checks passed
@rohitramu rohitramu mentioned this pull request Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-version-updates Added to release notes under the "Version Updates" heading.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants