@@ -111,6 +111,7 @@ var OperatorConfigCRDResourceColumns = []apiextv1.CustomResourceColumnDefinition
111
111
112
112
var min0 = 0.0
113
113
var min1 = 1.0
114
+ var minLength1 int64 = 1
114
115
var minDisable = - 1.0
115
116
116
117
// PostgresCRDResourceValidation to check applied manifest parameters
@@ -900,8 +901,69 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{
900
901
Nullable : true ,
901
902
Items : & apiextv1.JSONSchemaPropsOrArray {
902
903
Schema : & apiextv1.JSONSchemaProps {
903
- Type : "object" ,
904
- XPreserveUnknownFields : util .True (),
904
+ Type : "object" ,
905
+ Properties : map [string ]apiextv1.JSONSchemaProps {
906
+ "maxSkew" : {
907
+ Type : "integer" ,
908
+ Format : "int32" ,
909
+ Minimum : & min1 ,
910
+ },
911
+ "topologyKey" : {
912
+ Type : "string" ,
913
+ MinLength : & minLength1 ,
914
+ },
915
+ "whenUnsatisfiable" : {
916
+ Type : "string" ,
917
+ Enum : []apiextv1.JSON {
918
+ {Raw : []byte (`"DoNotSchedule"` )},
919
+ {Raw : []byte (`"ScheduleAnyway"` )},
920
+ },
921
+ },
922
+ "labelSelector" : {
923
+ Type : "object" ,
924
+ Properties : map [string ]apiextv1.JSONSchemaProps {
925
+ "matchLabels" : {
926
+ Type : "object" ,
927
+ AdditionalProperties : & apiextv1.JSONSchemaPropsOrBool {
928
+ Schema : & apiextv1.JSONSchemaProps {
929
+ Type : "string" ,
930
+ },
931
+ },
932
+ },
933
+ "matchExpressions" : {
934
+ Type : "array" ,
935
+ Items : & apiextv1.JSONSchemaPropsOrArray {
936
+ Schema : & apiextv1.JSONSchemaProps {
937
+ Type : "object" ,
938
+ Properties : map [string ]apiextv1.JSONSchemaProps {
939
+ "key" : {
940
+ Type : "string" ,
941
+ },
942
+ "operator" : {
943
+ Type : "string" ,
944
+ Enum : []apiextv1.JSON {
945
+ {Raw : []byte (`"In"` )},
946
+ {Raw : []byte (`"NotIn"` )},
947
+ {Raw : []byte (`"Exists"` )},
948
+ {Raw : []byte (`"DoesNotExist"` )},
949
+ },
950
+ },
951
+ "values" : {
952
+ Type : "array" ,
953
+ Items : & apiextv1.JSONSchemaPropsOrArray {
954
+ Schema : & apiextv1.JSONSchemaProps {
955
+ Type : "string" ,
956
+ },
957
+ },
958
+ },
959
+ },
960
+ },
961
+ },
962
+ },
963
+ },
964
+ },
965
+ },
966
+ Required : []string {"maxSkew" , "topologyKey" , "whenUnsatisfiable" },
905
967
},
906
968
},
907
969
},
0 commit comments