TrueChartsClone/charts/stable/openkm/templates/common.yaml

23 lines
595 B
YAML

{{/* Make sure all variables are set properly */}}
{{- include "common.setup" . }}
{{/* Render configmap for openkm */}}
{{- include "openkm.configmap" . }}
{{/* Append the general secret volumes to the volumes */}}
{{- define "openkm.initvolume" -}}
enabled: "true"
mountPath: "/config/init"
readOnly: true
type: "custom"
volumeSpec:
configMap:
name: {{ include "common.names.fullname" . }}-init
defaultMode: 0777
{{- end -}}
{{- $_ := set .Values.persistence "init" (include "openkm.initvolume" . | fromYaml) -}}
{{/* Render the templates */}}
{{ include "common.postSetup" . }}