Add support for DualStack (IPv4/IPv6) networks#5206
Add support for DualStack (IPv4/IPv6) networks#5206DomiKoPL wants to merge 5 commits intoGoogleCloudPlatform:developfrom
Conversation
This change enables the configuration of IPv6 for VPC subnetworks. It introduces new variables to define the stack type and IPv6 access type, allowing for the creation of dual-stack (IPv4/IPv6) networks. - Added 'subnetwork_stack_type' and 'subnetwork_ipv6_access_type' variables. - Added 'subnetwork_stack_type' output variable. - Updated the default primary subnetwork configuration to utilize these settings. - Updated README.md with the new input and output parameters and usage details.
This change enables the Slurm v6 controller to support dual-stack (IPv4/IPv6) networking by introducing the 'subnetwork_stack_type' variable. This parameter is applied to the controller's primary network interface to ensure alignment with the underlying VPC configuration. - Added 'subnetwork_stack_type' variable to the controller module. - Updated the controller instance resource to apply the stack type to its primary network interface. - Updated README.md to include the new input variable.
Summary of ChangesHello @DomiKoPL, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the networking capabilities of the system by integrating dual-stack (IPv4/IPv6) support. It allows users to provision VPCs and their subnetworks with IPv6, and ensures that the Slurm controller instances can correctly leverage these advanced network configurations. The changes provide greater flexibility and future-proofing for network deployments without altering existing IPv4-only setups. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces dual-stack (IPv4/IPv6) support, which is a valuable addition. The implementation is mostly correct, but I've identified a critical issue in one of the module outputs that would cause a deployment failure. Additionally, there are opportunities to improve robustness by adding validation for the new variables, as was intended in the pull request description. I've also included some minor suggestions to improve documentation consistency.
community/modules/scheduler/schedmd-slurm-gcp-v6-controller/README.md
Outdated
Show resolved
Hide resolved
community/modules/scheduler/schedmd-slurm-gcp-v6-controller/variables_controller_instance.tf
Show resolved
Hide resolved
6976565 to
61292fe
Compare
Summary
This Pull Request introduces support for dual-stack (IPv4/IPv6) networking across the VPC and Slurm v6 controller modules. These changes allow users to provision networks with IPv6 capabilities and ensure that the Slurm controller instance is correctly configured to utilize the assigned network stack.
Changes
modules/network/vpc
subnetwork_stack_typeandsubnetwork_ipv6_access_typevariables.IPV4_IPV6configuration.subnetwork_stack_typeoutput to expose the configuration of the primary subnetwork.community/modules/scheduler/schedmd-slurm-gcp-v6-controller
subnetwork_stack_typevariable.stack_typeto its primary network interface.Submission Checklist
NOTE: Community submissions can take up to 2 weeks to be reviewed.
Please take the following actions before submitting this pull request.