fix: remove validation on frompod source label · GoogleCloudPlatform/prometheus-engine@d5ed658 (original) (raw)
File tree
- pkg/operator/apis/monitoring/v1
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -667,7 +667,6 @@ spec: | ||
| 667 | 667 | properties: |
| 668 | 668 | from: |
| 669 | 669 | description: Kubernetes resource label to remap. |
| 670 | -pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$ | |
| 671 | 670 | type: string |
| 672 | 671 | to: |
| 673 | 672 | description: |- |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -662,7 +662,6 @@ spec: | ||
| 662 | 662 | properties: |
| 663 | 663 | from: |
| 664 | 664 | description: Kubernetes resource label to remap. |
| 665 | -pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$ | |
| 666 | 665 | type: string |
| 667 | 666 | to: |
| 668 | 667 | description: |- |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -894,7 +894,6 @@ spec: | ||
| 894 | 894 | properties: |
| 895 | 895 | from: |
| 896 | 896 | description: Kubernetes resource label to remap. |
| 897 | -pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$ | |
| 898 | 897 | type: string |
| 899 | 898 | to: |
| 900 | 899 | description: |- |
| @@ -3247,7 +3246,6 @@ spec: | ||
| 3247 | 3246 | properties: |
| 3248 | 3247 | from: |
| 3249 | 3248 | description: Kubernetes resource label to remap. |
| 3250 | -pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$ | |
| 3251 | 3249 | type: string |
| 3252 | 3250 | to: |
| 3253 | 3251 | description: |- |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -282,7 +282,6 @@ type ClusterTargetLabels struct { | ||
| 282 | 282 | // onto a Prometheus target. |
| 283 | 283 | type LabelMapping struct { |
| 284 | 284 | // Kubernetes resource label to remap. |
| 285 | -// +kubebuilder:validation:Pattern=^[a-zA-Z_][a-zA-Z0-9_]*$ | |
| 286 | 285 | From string `json:"from"` |
| 287 | 286 | // Remapped Prometheus target label. |
| 288 | 287 | // Defaults to the same name as `From`. |