diff --git a/charts/postgres-operator/crds/postgresqls.yaml b/charts/postgres-operator/crds/postgresqls.yaml index bcd212afd..b3bf61578 100644 --- a/charts/postgres-operator/crds/postgresqls.yaml +++ b/charts/postgres-operator/crds/postgresqls.yaml @@ -495,10 +495,6 @@ spec: type: array items: type: object - required: - - key - - operator - - effect properties: key: type: string diff --git a/manifests/postgresql.crd.yaml b/manifests/postgresql.crd.yaml index 1f1b064a7..0d2a03bf9 100644 --- a/manifests/postgresql.crd.yaml +++ b/manifests/postgresql.crd.yaml @@ -493,10 +493,6 @@ spec: type: array items: type: object - required: - - key - - operator - - effect properties: key: type: string diff --git a/pkg/apis/acid.zalan.do/v1/crds.go b/pkg/apis/acid.zalan.do/v1/crds.go index 89a04b180..831c7482b 100644 --- a/pkg/apis/acid.zalan.do/v1/crds.go +++ b/pkg/apis/acid.zalan.do/v1/crds.go @@ -744,8 +744,7 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{ Type: "array", Items: &apiextv1.JSONSchemaPropsOrArray{ Schema: &apiextv1.JSONSchemaProps{ - Type: "object", - Required: []string{"key", "operator", "effect"}, + Type: "object", Properties: map[string]apiextv1.JSONSchemaProps{ "key": { Type: "string",