add enum validation to pod_management_policy

This commit is contained in:
Felix Kunde 2019-11-13 12:32:19 +01:00
parent 17e5c757c0
commit 9e222bf90c
3 changed files with 14 additions and 0 deletions

View File

@ -498,6 +498,9 @@ spec:
type: string
pod_management_policy:
type: string
enum:
- "ordered_ready"
- "parallel"
pod_role_label:
type: string
pod_service_account_name:

View File

@ -103,6 +103,9 @@ spec:
type: string
pod_management_policy:
type: string
enum:
- "ordered_ready"
- "parallel"
pod_role_label:
type: string
pod_service_account_name:

View File

@ -717,6 +717,14 @@ var OperatorConfigCRDResourceValidation = apiextv1beta1.JSONSchemaProps{
},
"pod_management_policy": {
Type: "string",
Enum: []apiextv1beta1.JSON{
{
Raw: []byte(`"ordered_ready"`),
},
{
Raw: []byte(`"parallel"`),
},
},
},
"pod_role_label": {
Type: "string",