add type to enums in crd validation

This commit is contained in:
Felix Kunde
2019-11-26 11:16:02 +01:00
parent 99bb2041ae
commit ba528cba4b
6 changed files with 19 additions and 6 deletions
+2
View File
@@ -23,9 +23,11 @@ spec:
- configuration
properties:
kind:
type: string
enum:
- OperatorConfiguration
apiVersion:
type: string
enum:
- acid.zalan.do/v1
metadata:
+6
View File
@@ -23,9 +23,11 @@ spec:
- spec
properties:
kind:
type: string
enum:
- postgresql
apiVersion:
type: string
enum:
- acid.zalan.do/v1
metadata:
@@ -143,6 +145,7 @@ spec:
- version
properties:
version:
type: string
enum:
- "9.3"
- "9.4"
@@ -248,12 +251,14 @@ spec:
key:
type: string
operator:
type: string
enum:
- Equal
- Exists
value:
type: string
effect:
type: string
enum:
- NoExecute
- NoSchedule
@@ -269,6 +274,7 @@ spec:
nullable: true
description: "Role flags specified here must not contradict each other"
items:
type: string
enum:
- bypassrls
- BYPASSRLS