23 lines
652 B
YAML
23 lines
652 B
YAML
{{/* Make sure all variables are set properly */}}
|
|
{{- include "tc.common.loader.init" . }}
|
|
|
|
{{/* Render secret */}}
|
|
{{- include "plexanisync.secret" . }}
|
|
|
|
{{- define "plexanisync.custom.mappings" -}}
|
|
enabled: true
|
|
type: secret
|
|
readOnly: true
|
|
defaultMode: "0600"
|
|
objectName: '{{ include "tc.common.names.fullname" . }}-config-secret'
|
|
mountPath: /plexanisync/custom_mappings.yaml
|
|
subPath: custom_mappings.yaml
|
|
{{- end -}}
|
|
|
|
{{- if .Values.custom_mappings -}}
|
|
{{- $_ := set .Values.persistence "custommappings" (include "plexanisync.custom.mappings" . | fromYaml) -}}
|
|
{{- end -}}
|
|
|
|
{{/* Render the templates */}}
|
|
{{ include "tc.common.loader.apply" . }}
|