add maxLength constraint for CRD

This commit is contained in:
Felix Kunde
2020-10-15 13:55:13 +02:00
parent d15f2d3392
commit f212ab7891
3 changed files with 30 additions and 1 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: 50
spec:
type: object
required: