From 7bb4a28de2fd595abfa8f144a49033a66ca35527 Mon Sep 17 00:00:00 2001 From: jpgouin Date: Tue, 1 Oct 2024 15:17:48 +0000 Subject: [PATCH] fix load of schema --- templates/statefulset.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/statefulset.yaml b/templates/statefulset.yaml index 7ba1809..8646d81 100644 --- a/templates/statefulset.yaml +++ b/templates/statefulset.yaml @@ -188,8 +188,6 @@ spec: {{- if .Values.extraEnvVars }} {{- include "common.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 12 }} {{- end }} - - name: LDAP_EXTRA_SCHEMAS - value: {{ print "cosine,inetorgperson,nis," (include "openldap.schemaFiles" .)}} envFrom: {{- if .Values.extraEnvVarsCM }} - configMapRef: @@ -251,13 +249,13 @@ spec: mountPath: /bitnami/openldap/ - name: certs mountPath: /opt/bitnami/openldap/certs - {{- range $file := (include "openldap.builtinSchemaFiles" . | split ",") }} + {{- range $file := (include "openldap.builtinSchemaFiles" (dict "context" . ) | split ",") }} - name: replication-acls mountPath: /opt/bitnami/openldap/etc/schema/{{ $file }}.ldif subPath: {{ $file }}.ldif {{- end }} {{- if .Values.customSchemaFiles}} - {{- range $file := (include "openldap.customSchemaFiles" . | split ",") }} + {{- range $file := (include "openldap.customSchemaFiles" (dict "context" . ) | split ",") }} - name: custom-schema-files mountPath: /opt/bitnami/openldap/etc/schema/{{ $file }}.ldif subPath: {{ $file }}.ldif