Skip to content

Commit 901d569

Browse files
committed
add serviceTemplate poolers support
Signed-off-by: c-romeo <[email protected]>
1 parent 8ba8bee commit 901d569

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

charts/cluster/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ refer to the [CloudNativePG Documentation](https://cloudnative-pg.io/documentat
282282
| poolers[].authQuery | string | `{}` | The credentials of the user that need to be used for the authentication query. |
283283
| 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 |
284284
| poolers[].template | [PodTemplateSpec][PodTemplateSpec] | `{}` | The template of the Pod to be created |
285-
| poolers[].template | [ServiceTemplateSpec][ServiceTemplateSpec] | `{}` | Template for the Service to be created |
285+
| poolers[].serviceTemplate | [ServiceTemplateSpec][ServiceTemplateSpec] | `{}` | Template for the Service to be created |
286286
| poolers[].pg_hba | []string | `{}` | PostgreSQL Host Based Authentication rules (lines to be appended to the pg_hba.conf file) |
287287
| poolers[].monitoring.enabled | bool | `false` | Whether to enable monitoring for the Pooler. |
288288
| 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
@@ -46,4 +46,8 @@ spec:
4646
template:
4747
{{- . | toYaml | nindent 4 }}
4848
{{- end }}
49+
{{- with .serviceTemplate }}
50+
serviceTemplate:
51+
{{- . | toYaml | nindent 4 }}
52+
{{- end }}
4953
{{- end }}

charts/cluster/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,9 @@ poolers: []
480480
# # -- Custom PgBouncer deployment template.
481481
# # Use to override image, specify resources, etc.
482482
# template: {}
483+
# # -- Custom PgBouncer service template.
484+
# # Use to override service type, annotations, etc.
485+
# serviceTemplate: {}
483486
# -
484487
# # -- Pooler name
485488
# name: ro
@@ -502,3 +505,6 @@ poolers: []
502505
# # -- Custom PgBouncer deployment template.
503506
# # Use to override image, specify resources, etc.
504507
# template: {}
508+
# # -- Custom PgBouncer service template.
509+
# # Use to override service type, annotations, etc.
510+
# serviceTemplate: {}

0 commit comments

Comments
 (0)