apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "gangway.fullname" . }}
  labels:
    app.kubernetes.io/name: {{ include "gangway.name" . }}
    helm.sh/chart: {{ include "gangway.chart" . }}
    app.kubernetes.io/instance: {{ .Release.Name }}
    app.kubernetes.io/managed-by: {{ .Release.Service }}
data:
  gangway.yaml: |
    {{- .Values.gangway | toYaml | nindent 4 }}
    {{- if .Values.trustedCACert }}
    trustedCAPath: /gangway/rootca.crt
  rootca.crt: |
    {{- .Values.trustedCACert | nindent 4}}
    {{ end }}



