Skip to content

Commit 8c31791

Browse files
fix(cluster): expose pooler serviceTemplate
1 parent 3d072a2 commit 8c31791

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

charts/cluster/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ Kubernetes: `>=1.29.0-0`
340340
| poolers[].authQuery | string | `{}` | The credentials of the user that need to be used for the authentication query. |
341341
| poolers[].parameters | map[string]string | `{}` | Additional parameters to be passed to PgBouncer - please check the CNPG documentation for a list of options you can configure |
342342
| poolers[].template | [PodTemplateSpec][PodTemplateSpec] | `{}` | The template of the Pod to be created |
343-
| poolers[].template | [ServiceTemplateSpec][ServiceTemplateSpec] | `{}` | Template for the Service to be created |
343+
| poolers[].serviceTemplate | [ServiceTemplateSpec][ServiceTemplateSpec] | `{}` | Template for the Service to be created |
344344
| poolers[].pg_hba | []string | `{}` | PostgreSQL Host Based Authentication rules (lines to be appended to the pg_hba.conf file) |
345345
| poolers[].monitoring.enabled | bool | `false` | Whether to enable monitoring for the Pooler. |
346346
| poolers[].monitoring.podMonitor.enabled | bool | `true` | Create a podMonitor for the Pooler. |

charts/cluster/README.md.gotmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ refer to the [CloudNativePG Documentation](https://cloudnative-pg.io/documentati
131131
| poolers[].authQuery | string | `{}` | The credentials of the user that need to be used for the authentication query. |
132132
| poolers[].parameters | map[string]string | `{}` | Additional parameters to be passed to PgBouncer - please check the CNPG documentation for a list of options you can configure |
133133
| poolers[].template | [PodTemplateSpec][PodTemplateSpec] | `{}` | The template of the Pod to be created |
134-
| poolers[].template | [ServiceTemplateSpec][ServiceTemplateSpec] | `{}` | Template for the Service to be created |
134+
| poolers[].serviceTemplate | [ServiceTemplateSpec][ServiceTemplateSpec] | `{}` | Template for the Service to be created |
135135
| poolers[].pg_hba | []string | `{}` | PostgreSQL Host Based Authentication rules (lines to be appended to the pg_hba.conf file) |
136136
| poolers[].monitoring.enabled | bool | `false` | Whether to enable monitoring for the Pooler. |
137137
| poolers[].monitoring.podMonitor.enabled | bool | `true` | Create a podMonitor for the Pooler. |

charts/cluster/templates/pooler.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,8 @@ spec:
3232
template:
3333
{{- . | toYaml | nindent 4 }}
3434
{{- end }}
35+
{{- with .serviceTemplate }}
36+
serviceTemplate:
37+
{{- . | toYaml | nindent 4 }}
38+
{{- end }}
3539
{{- end }}

charts/cluster/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,9 @@ poolers: []
644644
# # -- Custom PgBouncer deployment template.
645645
# # Use to override image, specify resources, etc.
646646
# template: {}
647+
# # -- Custom PgBouncer service template.
648+
# # Use to override pooler service annotations, type, etc.
649+
# serviceTemplate: {}
647650
# -
648651
# # -- Pooler name
649652
# name: ro
@@ -675,3 +678,6 @@ poolers: []
675678
# # -- Custom PgBouncer deployment template.
676679
# # Use to override image, specify resources, etc.
677680
# template: {}
681+
# # -- Custom PgBouncer service template.
682+
# # Use to override pooler service annotations, type, etc.
683+
# serviceTemplate: {}

0 commit comments

Comments
 (0)