Validation for External IPs and Custom VPC/Subnetwork in Compute Environment Configuration
Esha Joshi
As a user, when configuring a Compute Environment (CE) on the Platform for Google Batch and opting to disable the use of external IPs for my VMs, I would like the CE configuration form to validate that a custom VPC and subnetwork are specified.
Problem:
Currently, if I enable the setting to disable external IPs without specifying a custom VPC and subnetwork, the Compute Environment can still be created. However, this misconfiguration causes pipelines to fail at runtime, requiring me to revisit and reconfigure the CE. This leads to unnecessary delays and a frustrating user experience.
Proposed Solution:
Add a validation step in the CE configuration form that ensures the following when disabling external IPs:
- A custom VPC is provided.
- A valid subnetwork within the custom VPC is specified.
If these conditions are not met, the form should display a clear and actionable error message before allowing the CE to be saved.