diff --git a/charts/postgres-operator/crds/postgresqls.yaml b/charts/postgres-operator/crds/postgresqls.yaml index 5ec40bdb1..4fbdf3908 100644 --- a/charts/postgres-operator/crds/postgresqls.yaml +++ b/charts/postgres-operator/crds/postgresqls.yaml @@ -532,10 +532,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 183b97fc6..3fddc32d9 100644 --- a/manifests/postgresql.crd.yaml +++ b/manifests/postgresql.crd.yaml @@ -530,10 +530,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 7f8178bab..0b2c5a9fb 100644 --- a/pkg/apis/acid.zalan.do/v1/crds.go +++ b/pkg/apis/acid.zalan.do/v1/crds.go @@ -798,8 +798,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",