Skip to content

Commit

Permalink
fix load of schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-gouin committed Oct 1, 2024
1 parent 8567aaf commit 7bb4a28
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7bb4a28

Please sign in to comment.