add enum validation to pod_management_policy
This commit is contained in:
parent
17e5c757c0
commit
9e222bf90c
|
|
@ -498,6 +498,9 @@ spec:
|
||||||
type: string
|
type: string
|
||||||
pod_management_policy:
|
pod_management_policy:
|
||||||
type: string
|
type: string
|
||||||
|
enum:
|
||||||
|
- "ordered_ready"
|
||||||
|
- "parallel"
|
||||||
pod_role_label:
|
pod_role_label:
|
||||||
type: string
|
type: string
|
||||||
pod_service_account_name:
|
pod_service_account_name:
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,9 @@ spec:
|
||||||
type: string
|
type: string
|
||||||
pod_management_policy:
|
pod_management_policy:
|
||||||
type: string
|
type: string
|
||||||
|
enum:
|
||||||
|
- "ordered_ready"
|
||||||
|
- "parallel"
|
||||||
pod_role_label:
|
pod_role_label:
|
||||||
type: string
|
type: string
|
||||||
pod_service_account_name:
|
pod_service_account_name:
|
||||||
|
|
|
||||||
|
|
@ -717,6 +717,14 @@ var OperatorConfigCRDResourceValidation = apiextv1beta1.JSONSchemaProps{
|
||||||
},
|
},
|
||||||
"pod_management_policy": {
|
"pod_management_policy": {
|
||||||
Type: "string",
|
Type: "string",
|
||||||
|
Enum: []apiextv1beta1.JSON{
|
||||||
|
{
|
||||||
|
Raw: []byte(`"ordered_ready"`),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Raw: []byte(`"parallel"`),
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
"pod_role_label": {
|
"pod_role_label": {
|
||||||
Type: "string",
|
Type: "string",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue