Skip to content

Commit

Permalink
Enable specifying sidecars via chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonher937 committed Nov 8, 2023
1 parent 409e4c7 commit 216e7ab
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/postgres-operator/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ data:
{{- include "flattenValuesForConfigMap" .Values.configTeamsApi | indent 2 }}
{{- include "flattenValuesForConfigMap" .Values.configConnectionPooler | indent 2 }}
{{- include "flattenValuesForConfigMap" .Values.configPatroni | indent 2 }}
{{- include "flattenValuesForConfigMap" .Values.configSidecars | indent 2 }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/postgres-operator/templates/operatorconfiguration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ configuration:
{{ toYaml .Values.configConnectionPooler | indent 4 }}
patroni:
{{ toYaml .Values.configPatroni | indent 4 }}
sidecars:
{{ toYaml .Values.configSidecars | indent 4 }}
{{- end }}
20 changes: 20 additions & 0 deletions charts/postgres-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,26 @@ configPatroni:
# enable Patroni DCS failsafe_mode feature
enable_patroni_failsafe_mode: false

# Specifies a list of sidecars to include in all deployments
configSidecars: {}
# - name: exporter
# image: quay.io/prometheuscommunity/postgres-exporter
# ports:
# - name: exporter
# containerPort: 9187
# protocol: TCP
# resources:
# requests:
# cpu: 50m
# memory: 200M
# env:
# - name: "DATA_SOURCE_URI"
# value: "$(POD_NAME)/postgres?sslmode=disable"
# - name: "DATA_SOURCE_USER"
# value: "$(POSTGRES_USER)"
# - name: "DATA_SOURCE_PASS"
# value: "$(POSTGRES_PASSWORD)"

# Zalando's internal CDC stream feature
enableStreams: false

Expand Down

0 comments on commit 216e7ab

Please sign in to comment.