From 37bfa71808c58720cd4cdca28e98c9a307514448 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 bfc66b160..8cf360340 100644 --- a/manifests/postgresql.crd.yaml +++ b/manifests/postgresql.crd.yaml @@ -4061,7 +4061,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 46739e46d..ef7efee56 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