@@ -2,6 +2,7 @@ package v1
22
33import (
44 acidzalando "github.com/zalando/postgres-operator/pkg/apis/acid.zalan.do"
5+ "github.com/zalando/postgres-operator/pkg/util"
56 apiextv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
67 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
78)
@@ -111,8 +112,9 @@ var minDisable = -1.0
111112// PostgresCRDResourceValidation to check applied manifest parameters
112113var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation {
113114 OpenAPIV3Schema : & apiextv1.JSONSchemaProps {
114- Type : "object" ,
115- Required : []string {"kind" , "apiVersion" , "spec" },
115+ Type : "object" ,
116+ XPreserveUnknownFields : util .True (),
117+ Required : []string {"kind" , "apiVersion" , "spec" },
116118 Properties : map [string ]apiextv1.JSONSchemaProps {
117119 "kind" : {
118120 Type : "string" ,
@@ -412,6 +414,9 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{
412414 {
413415 Raw : []byte (`"12"` ),
414416 },
417+ {
418+ Raw : []byte (`"13"` ),
419+ },
415420 },
416421 },
417422 "parameters" : {
@@ -779,8 +784,9 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{
779784// OperatorConfigCRDResourceValidation to check applied manifest parameters
780785var OperatorConfigCRDResourceValidation = apiextv1.CustomResourceValidation {
781786 OpenAPIV3Schema : & apiextv1.JSONSchemaProps {
782- Type : "object" ,
783- Required : []string {"kind" , "apiVersion" , "configuration" },
787+ Type : "object" ,
788+ XPreserveUnknownFields : util .True (),
789+ Required : []string {"kind" , "apiVersion" , "configuration" },
784790 Properties : map [string ]apiextv1.JSONSchemaProps {
785791 "kind" : {
786792 Type : "string" ,
@@ -1394,6 +1400,7 @@ func buildCRD(name, kind, plural, short string, columns []apiextv1.CustomResourc
13941400 Plural : plural ,
13951401 ShortNames : []string {short },
13961402 Kind : kind ,
1403+ Categories : []string {"all" },
13971404 },
13981405 Scope : apiextv1 .NamespaceScoped ,
13991406 Versions : []apiextv1.CustomResourceDefinitionVersion {
0 commit comments