feat(controller): expose controller IG and named ports for LB integration#5967
feat(controller): expose controller IG and named ports for LB integration#5967mangal390 wants to merge 1 commit into
Conversation
Summary of ChangesHello, 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 enhances the Highlights
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 the 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 counterproductive. 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. Footnotes
|
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
There was a problem hiding this comment.
Code Review
This pull request introduces a new named_ports input variable to the Slurm GCP v6 controller module, dynamically applying these ports to both zonal and regional controller managed instance groups. It also adds several outputs to expose details about the controller instance groups. The review feedback recommends replacing the try() function in the new outputs with one(concat(...)) to avoid masking configuration errors, and adding input validation to the named_ports variable to ensure valid port numbers and RFC 1035 compliant names.
70b8b1d to
cbd4a09
Compare
cbd4a09 to
32e59da
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a new named_ports input variable to the Slurm GCP v6 controller module, enabling the configuration of named ports on the controller's zonal and regional Managed Instance Groups (MIGs). It also adds several outputs to expose MIG details and updates the module's documentation. The review feedback recommends referencing the MIG resources directly in the controller_mig_name output to preserve Terraform's dependency graph, and adding a validation rule to ensure all named port names are unique to prevent API errors.
32e59da to
736b8d1
Compare
736b8d1 to
c633db0
Compare
|
@arpit974 - I have resolved the conflicts and update the validation block. |
Description
This PR enhances the
schedmd-slurm-gcp-v6-controllermodule by natively exposing the Managed Instance Group (MIG) and its named ports, allowing users to seamlessly integrate the controller with Google Cloud Load Balancers (such as Internal Passthrough or Internal Application LBs).Changes made:
named_portsvariable: Added an optionalnamed_portslist variable tovariables_controller_instance.tfwhich applies directly to the underlyinggoogle_compute_instance_group_manager/google_compute_region_instance_group_manager.dynamic "named_port"block iterating over the new variable so users can expose ports (example:slurm-restapi: 6820) for Load Balancer backend discovery.outputs.tf(controller_instance_group,controller_mig_name,controller_mig_id, andcontroller_instance_names) that output the self-links and IDs of the deployed MIG when HA is enabled.