From 5d9867292a9edb4a5945b6f7f7890e7794b0cd84 Mon Sep 17 00:00:00 2001 From: Trung Minh Lai Date: Sat, 8 Mar 2025 13:27:29 +0700 Subject: [PATCH] Remove x-kubernetes-preserve-unknown-fields and XPreserveUnknownFields. --- manifests/postgresql.crd.yaml | 12 +++++++++++- pkg/apis/acid.zalan.do/v1/crds.go | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/manifests/postgresql.crd.yaml b/manifests/postgresql.crd.yaml index 92aada54e..77700097a 100644 --- a/manifests/postgresql.crd.yaml +++ b/manifests/postgresql.crd.yaml @@ -4062,7 +4062,17 @@ spec: nullable: true items: type: object - x-kubernetes-preserve-unknown-fields: true + properties: + maxSkew: + type: integer + format: int32 + topologyKey: + type: string + whenUnsatisfiable: + type: string + enum: + - DoNotSchedule + - ScheduleAnyway useLoadBalancer: description: |- deprecated load balancer settings maintained for backward compatibility diff --git a/pkg/apis/acid.zalan.do/v1/crds.go b/pkg/apis/acid.zalan.do/v1/crds.go index 1ab85c905..7f536a006 100644 --- a/pkg/apis/acid.zalan.do/v1/crds.go +++ b/pkg/apis/acid.zalan.do/v1/crds.go @@ -56,6 +56,7 @@ var OperatorConfigCRDResourceColumns = []apiextv1.CustomResourceColumnDefinition } var min1 = 1.0 +var minLength1 int64 = 1 var minDisable = -1.0 // OperatorConfigCRDResourceValidation to check applied manifest parameters