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 <elena.hardon@ness.com>

* 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 <elena.hardon@ness.com>
Signed-off-by: ehardon <elena.hardon@ness.com>

* Updated chart version

Signed-off-by: Elena Hardon elena.hardon@ness.com
Signed-off-by: ehardon <elena.hardon@ness.com>

* bump version

Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>
This commit is contained in:
Elena Hardon
2018-10-17 05:32:09 -07:00
committed by k8s-ci-robot
parent 8eab01b3d3
commit 75b25e3355
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -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
@@ -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