From 3313a378d809085f444aa6d80623699cfdfd0caf Mon Sep 17 00:00:00 2001 From: mbuken Date: Mon, 12 Jan 2026 07:46:22 +0100 Subject: [PATCH] fix: imagePullSecrets in all necessary places --- charts/postgres-operator/crds/postgresqls.yaml | 10 ++++++++++ pkg/apis/acid.zalan.do/v1/crds.go | 13 +++++++++++++ 2 files changed, 23 insertions(+) diff --git a/charts/postgres-operator/crds/postgresqls.yaml b/charts/postgres-operator/crds/postgresqls.yaml index 667c58efa..ec9fb4afc 100644 --- a/charts/postgres-operator/crds/postgresqls.yaml +++ b/charts/postgres-operator/crds/postgresqls.yaml @@ -138,6 +138,16 @@ spec: connectionPooler: type: object properties: + imagePullSecrets: + type: array + nullable: true + items: + type: object + required: + - name + properties: + name: + type: string dockerImage: type: string maxDBConnections: diff --git a/pkg/apis/acid.zalan.do/v1/crds.go b/pkg/apis/acid.zalan.do/v1/crds.go index b89cb1448..8beb87c68 100644 --- a/pkg/apis/acid.zalan.do/v1/crds.go +++ b/pkg/apis/acid.zalan.do/v1/crds.go @@ -220,6 +220,19 @@ var PostgresCRDResourceValidation = apiextv1.CustomResourceValidation{ "connectionPooler": { Type: "object", Properties: map[string]apiextv1.JSONSchemaProps{ + "imagePullSecrets": { + Type: "array", + Nullable: true, + Items: &apiextv1.JSONSchemaPropsOrArray{ + Schema: &apiextv1.JSONSchemaProps{ + Type: "object", + Required: []string{"name"}, + Properties: map[string]apiextv1.JSONSchemaProps{ + "name": {Type: "string"}, + }, + }, + }, + }, "dockerImage": { Type: "string", },