From 38db48c7f085be6834a626d496d5bdece62f8a9d Mon Sep 17 00:00:00 2001 From: preved911 Date: Mon, 21 Mar 2022 18:05:45 +0300 Subject: [PATCH] fixing toleration fields requirements (#1797) Signed-off-by: Ildar Valiullin --- charts/postgres-operator/crds/postgresqls.yaml | 4 ---- manifests/postgresql.crd.yaml | 4 ---- pkg/apis/acid.zalan.do/v1/crds.go | 3 +-- 3 files changed, 1 insertion(+), 10 deletions(-) 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",