add maxLength constraint for CRD (#1175)

* add maxLength constraint for CRD
This commit is contained in:
Felix Kunde
2020-10-22 08:44:04 +02:00
committed by GitHub
parent a8bfe4eb87
commit 22fa0875e2
4 changed files with 31 additions and 2 deletions
@@ -57,6 +57,7 @@ spec:
required:
- kind
- apiVersion
- metadata
- spec
properties:
kind:
@@ -67,6 +68,14 @@ spec:
type: string
enum:
- acid.zalan.do/v1
metadata:
type: object
required:
- name
properties:
name:
type: string
maxLength: 53
spec:
type: object
required: