add enum validation to pod_management_policy
This commit is contained in:
		
							parent
							
								
									17e5c757c0
								
							
						
					
					
						commit
						9e222bf90c
					
				|  | @ -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: | ||||
|  |  | |||
|  | @ -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: | ||||
|  |  | |||
|  | @ -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", | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue