mirror of
https://github.com/TeamPiped/Piped-Kubernetes.git
synced 2024-08-14 23:57:15 +00:00
20 lines
No EOL
549 B
YAML
20 lines
No EOL
549 B
YAML
---
|
|
{{- include "bjw-s.common.values.init" . }}
|
|
|
|
{{- define "common.getValueFromSecret" }}
|
|
{{- $obj := (lookup "v1" "Secret" .Namespace .Name).data -}}
|
|
{{- if $obj }}
|
|
{{- index $obj .Key | b64dec -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- 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) -}} |