From 37731a95821539510431843558609dafd39d19dd Mon Sep 17 00:00:00 2001 From: Felix Kunde Date: Thu, 16 Apr 2026 13:57:05 +0200 Subject: [PATCH] add options to chart and example manifests --- .../postgres-operator/crds/operatorconfigurations.yaml | 9 +++++++++ charts/postgres-operator/values.yaml | 5 +++++ manifests/configmap.yaml | 2 ++ manifests/operatorconfiguration.crd.yaml | 9 +++++++++ manifests/postgresql-operator-default-configuration.yaml | 3 +++ 5 files changed, 28 insertions(+) diff --git a/charts/postgres-operator/crds/operatorconfigurations.yaml b/charts/postgres-operator/crds/operatorconfigurations.yaml index 2c432a082..5b93baffe 100644 --- a/charts/postgres-operator/crds/operatorconfigurations.yaml +++ b/charts/postgres-operator/crds/operatorconfigurations.yaml @@ -670,6 +670,12 @@ spec: connection_pooler_image: type: string default: "registry.opensource.zalan.do/acid/pgbouncer:master-32" + connection_pooler_labels: + type: object + additionalProperties: + type: string + default: + component: db-connection-pooler connection_pooler_max_db_connections: type: integer default: 60 @@ -683,6 +689,9 @@ spec: type: integer minimum: 1 default: 2 + connection_pooler_role_label: + type: string + default: "pooler-role" connection_pooler_default_cpu_limit: type: string pattern: '^(\d+m|\d+(\.\d{1,3})?)$' diff --git a/charts/postgres-operator/values.yaml b/charts/postgres-operator/values.yaml index 6d0161bfb..6044f8cd8 100644 --- a/charts/postgres-operator/values.yaml +++ b/charts/postgres-operator/values.yaml @@ -442,12 +442,17 @@ configConnectionPooler: connection_pooler_user: "pooler" # docker image connection_pooler_image: "registry.opensource.zalan.do/acid/pgbouncer:master-32" + # labels to add to the connection pooler deployment and pods + connection_pooler_labels: + component: db-connection-pooler # max db connections the pooler should hold connection_pooler_max_db_connections: 60 # default pooling mode connection_pooler_mode: "transaction" # number of pooler instances connection_pooler_number_of_instances: 2 + # role label to add to the connection pooler resources to filter them easier + connection_pooler_role_label: pooler-role # default resources connection_pooler_default_cpu_request: 500m connection_pooler_default_memory_request: 100Mi diff --git a/manifests/configmap.yaml b/manifests/configmap.yaml index 1cf455e57..45d70938b 100644 --- a/manifests/configmap.yaml +++ b/manifests/configmap.yaml @@ -18,9 +18,11 @@ data: connection_pooler_default_memory_limit: 100Mi connection_pooler_default_memory_request: 100Mi connection_pooler_image: "registry.opensource.zalan.do/acid/pgbouncer:master-32" + connection_pooler_labels: "component:db-connection-pooler" connection_pooler_max_db_connections: "60" connection_pooler_mode: "transaction" connection_pooler_number_of_instances: "2" + connection_pooler_role_label: pooler-role connection_pooler_schema: "pooler" connection_pooler_user: "pooler" crd_categories: "all" diff --git a/manifests/operatorconfiguration.crd.yaml b/manifests/operatorconfiguration.crd.yaml index 03534cefb..10f8b37b9 100644 --- a/manifests/operatorconfiguration.crd.yaml +++ b/manifests/operatorconfiguration.crd.yaml @@ -668,6 +668,12 @@ spec: connection_pooler_image: type: string default: "registry.opensource.zalan.do/acid/pgbouncer:master-32" + connection_pooler_labels: + type: object + additionalProperties: + type: string + default: + component: db-connection-pooler connection_pooler_max_db_connections: type: integer default: 60 @@ -681,6 +687,9 @@ spec: type: integer minimum: 1 default: 2 + connection_pooler_role_label: + type: string + default: "pooler-role" connection_pooler_default_cpu_limit: type: string pattern: '^(\d+m|\d+(\.\d{1,3})?)$' diff --git a/manifests/postgresql-operator-default-configuration.yaml b/manifests/postgresql-operator-default-configuration.yaml index 9c54e4379..8e27955e0 100644 --- a/manifests/postgresql-operator-default-configuration.yaml +++ b/manifests/postgresql-operator-default-configuration.yaml @@ -218,9 +218,12 @@ configuration: connection_pooler_default_memory_limit: 100Mi connection_pooler_default_memory_request: 100Mi connection_pooler_image: "registry.opensource.zalan.do/acid/pgbouncer:master-32" + connection_pooler_labels: + component: db-connection-pooler # connection_pooler_max_db_connections: 60 connection_pooler_mode: "transaction" connection_pooler_number_of_instances: 2 + connection_pooler_role_label: pooler-role # connection_pooler_schema: "pooler" # connection_pooler_user: "pooler" patroni: