* feat(plexanisync) add plexanisync * changes * remove newline from values * configfile * ui * secret * custom mapping * ui * precommit * add descriptions * whops * another check * .... * check * Apply suggestions from code review Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * test something * revert * Apply suggestions from code review Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * roto * Update charts/incubator/plexanisync/values.yaml Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * hmm * Update charts/incubator/plexanisync/templates/_secret.tpl Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * only inject file if there is value * whops * . Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
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" . }}
|