2023-03-04 05:22:18 +05:30
|
|
|
{{- include "bjw-s.common.values.init" . }}
|
2023-02-15 06:55:36 +05:30
|
|
|
|
2023-03-05 12:29:45 +05:30
|
|
|
{{- define "common.getValueFromSecret" }}
|
|
|
|
{{- $obj := (lookup "v1" "Secret" .Namespace .Name).data -}}
|
|
|
|
{{- if $obj }}
|
|
|
|
{{- index $obj .Key | b64dec -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
2023-06-28 15:44:16 +05:30
|
|
|
{{- define "common.names.fullname" -}}
|
|
|
|
{{- if .Values.fullnameOverride -}}
|
|
|
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
|
|
|
|
{{- else -}}
|
|
|
|
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
|
|
|
{{- if contains $name .Release.Name -}}
|
|
|
|
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
|
|
|
|
{{- else -}}
|
|
|
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
2023-02-15 06:55:36 +05:30
|
|
|
{{- 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) -}}
|