Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions modules/mig/metadata.display.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ spec:
instance_template:
name: instance_template
title: Instance Template
regexValidation: ^https:\/\/www\.googleapis\.com\/compute\/v1\/projects\/[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?\/(?:global|regions\/[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)\/instanceTemplates\/[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?$
validation: Invalid template url format, valid format is either https://www.googleapis.com/compute/v1/projects/PROJECT_ID/regions/REGION/instanceTemplates/TEMPLATE_NAME (regional) or https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/instanceTemplates/TEMPLATE_NAME (global).
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: Let's use consistent placeholder for project, region etc. I sse {projectId} is for projectId. https://github.com/terraform-google-modules/terraform-google-sql-db/blob/main/modules/postgresql/metadata.display.yaml#L203

labels:
name: labels
title: Labels
Expand Down