{{- if .Values.stunnelClient.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "postgresql.fullname" . }}-stunnel-client
  labels:
    {{- include "postgresql.labels" . | nindent 4 }}
data:
  stunnel.conf: |
    {{- .Values.stunnelClient.config | nindent 4 }}
{{- end }}
