Provide global context

This commit is contained in:
2023-11-07 09:43:20 +01:00
parent 507cca0fb9
commit 35abefedd6
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -34,8 +34,8 @@ Create chart name and version as used by the chart label.
Common labels
*/}}
{{- define "template.labels" -}}
helm.sh/chart: {{ include "template.chart" . }}
{{ include "template.selectorLabels" . }}
helm.sh/chart: {{ include "template.chart" $ }}
{{ include "template.selectorLabels" $ }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{- define "template.annotations" -}}
@@ -47,7 +47,7 @@ meta.helm.sh/release-namespace: {{ .Release.Namespace }}
Selector labels
*/}}
{{- define "template.selectorLabels" -}}
app.kubernetes.io/name: {{ include "template.name" . }}
app.kubernetes.io/name: {{ include "template.name" $ }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}