mirror of https://github.com/grafana/grafana
resource-api: Loosen name validation to match K8s requirements (#93404)
* resource-api: Loosen name validation to match K8s requirements This patch modifies some of the requirements for name validation of objects in Resource API to match Kubernetes. The limit we have on characters in name is 64, but some resources allow upto 253 characters. Similarly we also include `:` in the regex, as many objects in default K8s setup use it in the name (the group `system:masters` for example) Signed-off-by: Prem Kumar <prem.saraswat@grafana.com> * Update the name column length in migrator and update e2e test to verify --------- Signed-off-by: Prem Kumar <prem.saraswat@grafana.com>dash-schema-experiments-zod
parent
21d26de4d8
commit
5c03c14b25
@ -0,0 +1,14 @@ |
|||||||
|
apiVersion: scope.grafana.app/v0alpha1 |
||||||
|
kind: Scope |
||||||
|
metadata: |
||||||
|
name: example-long |
||||||
|
spec: |
||||||
|
title: baz-scope |
||||||
|
description: Longer description for a scope |
||||||
|
filters: |
||||||
|
- key: aaa |
||||||
|
operator: equals |
||||||
|
value: eee |
||||||
|
- key: ccc |
||||||
|
operator: not-equals |
||||||
|
value: fff |
Loading…
Reference in new issue