diff --git a/charts/postgres-operator/templates/configmap.yaml b/charts/postgres-operator/templates/configmap.yaml index 471f1aee4..1f2c9ad55 100644 --- a/charts/postgres-operator/templates/configmap.yaml +++ b/charts/postgres-operator/templates/configmap.yaml @@ -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 }} diff --git a/charts/postgres-operator/templates/operatorconfiguration.yaml b/charts/postgres-operator/templates/operatorconfiguration.yaml index 6d3b0eb83..fb7bdef58 100644 --- a/charts/postgres-operator/templates/operatorconfiguration.yaml +++ b/charts/postgres-operator/templates/operatorconfiguration.yaml @@ -42,4 +42,6 @@ configuration: {{ toYaml .Values.configConnectionPooler | indent 4 }} patroni: {{ toYaml .Values.configPatroni | indent 4 }} + sidecars: +{{ toYaml .Values.configSidecars | indent 4 }} {{- end }} diff --git a/charts/postgres-operator/values.yaml b/charts/postgres-operator/values.yaml index 854b29b10..4ecda269c 100644 --- a/charts/postgres-operator/values.yaml +++ b/charts/postgres-operator/values.yaml @@ -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