From 75b25e3355d2fb22e155d6a70f1630e83f852670 Mon Sep 17 00:00:00 2001 From: Elena Hardon Date: Wed, 17 Oct 2018 15:32:09 +0300 Subject: [PATCH] Allow adding custom ldif files to the openldap chart (#7396) * Update deployment.yaml Updated deployment.yaml file in order to provide the desired argument `--copy-service` to start the ldap docker image so that a user of the chart can override the basis ldif file with another provided as an argument when installing the chart. Signed-off-by: ehardon * Added precondition for applying copy argument Added precondition for the `--copy-service` argument so that it won't be applied if no custom ldif files are provided. Signed-off-by: Elena Hardon Signed-off-by: ehardon * Updated chart version Signed-off-by: Elena Hardon elena.hardon@ness.com Signed-off-by: ehardon * bump version Signed-off-by: David J. M. Karlsen --- stable/openldap/Chart.yaml | 2 +- stable/openldap/templates/deployment.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/stable/openldap/Chart.yaml b/stable/openldap/Chart.yaml index 117c9e7ea2..4e85e4f9ae 100644 --- a/stable/openldap/Chart.yaml +++ b/stable/openldap/Chart.yaml @@ -1,6 +1,6 @@ name: openldap home: https://www.openldap.org -version: 0.2.3 +version: 0.2.4 appVersion: 2.4.44 description: Community developed LDAP software icon: http://www.openldap.org/images/headers/LDAPworm.gif diff --git a/stable/openldap/templates/deployment.yaml b/stable/openldap/templates/deployment.yaml index b827fa3480..ced489d13e 100644 --- a/stable/openldap/templates/deployment.yaml +++ b/stable/openldap/templates/deployment.yaml @@ -42,6 +42,9 @@ spec: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} +{{- if .Values.customLdifFiles }} + args: [--copy-service] +{{- end }} ports: - name: ldap-port containerPort: 389