Piped-Kubernetes/charts/apps/piped/templates/common.yaml

20 lines
549 B
YAML
Raw Normal View History

2023-02-15 01:25:36 +00:00
---
2023-03-03 23:52:18 +00:00
{{- include "bjw-s.common.values.init" . }}
2023-02-15 01:25:36 +00:00
{{- define "common.getValueFromSecret" }}
{{- $obj := (lookup "v1" "Secret" .Namespace .Name).data -}}
{{- if $obj }}
{{- index $obj .Key | b64dec -}}
{{- end -}}
{{- end -}}
2023-02-15 01:25:36 +00:00
{{- define "app-template.hardcodedValues" -}}
# Set the nameOverride based on the release name if no override has been set
{{ if not .Values.global.nameOverride }}
global:
nameOverride: "{{ .Release.Name }}"
{{ end }}
{{- end -}}
{{- $_ := mergeOverwrite .Values (include "app-template.hardcodedValues" . | fromYaml) -}}