charts/charts/harbor/templates/configmap-harbor_ldap.yaml
Tin Lam 714a550ffd feat(ldap): adds ldap support for Harbor
This adds a chart that allows LDAP support for Harbor dashboard.

Signed-off-by: Tin Lam <tin@irrational.io>
Change-Id: I60849d720f09296e5cc6872a77053667a6f5b69e
2021-01-23 11:31:03 -06:00

15 lines
466 B
YAML

{{- define "configmap-harbor_ldap" -}}
apiVersion: v1
kind: ConfigMap
metadata:
name: harbor-ldap-bin
data:
harbor-ldap-test.sh: |
{{- tpl (.Files.Get "bin/harbor-ldap-test.sh") . | nindent 4 }}
harbor-ldap-setup.sh: |
{{- tpl (.Files.Get "bin/harbor-ldap-setup.sh") . | nindent 4 }}
{{- end -}}
{{- if $.Values.config.ldap.enabled }}
{{- include "helpers.template.overlay" (dict "Global" $ "template_definition" "configmap-harbor_ldap") }}
{{- end }}