Standardize label validation in JSON schemas to conform with GCP platform limits (#4021)

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
This commit is contained in:
Simone Ruffilli
2026-06-11 12:56:45 +02:00
committed by GitHub
parent 8adb84c95c
commit d57c79ac92
51 changed files with 377 additions and 207 deletions

View File

@@ -11,7 +11,14 @@
"type": "string"
},
"labels": {
"type": "object"
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^[a-z][a-z0-9_-]{0,62}$": {
"type": "string",
"pattern": "^[a-z0-9_-]{0,63}$"
}
}
},
"metadata_template": {
"type": "string"

View File

@@ -9,6 +9,9 @@
- **description**: *string*
- **display_name**: *string*
- **labels**: *object*
<br>*additional properties: false*
- **`^[a-z][a-z0-9_-]{0,62}$`**: *string*
<br>*pattern: ^[a-z0-9_-]{0,63}$*
- **metadata_template**: *string*
- **iam**: *reference([iam](#refs-iam))*
- **iam_bindings**: *reference([iam_bindings](#refs-iam_bindings))*