diff --git a/charts/oramap-chart/templates/_helpers.tpl b/charts/oramap-chart/templates/_helpers.tpl index 1767bb5..0bb20ef 100644 --- a/charts/oramap-chart/templates/_helpers.tpl +++ b/charts/oramap-chart/templates/_helpers.tpl @@ -8,4 +8,24 @@ {{- define "oramap.chart" -}} {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "oramap.labels" -}} +helm.sh/chart: {{ include "oramap.chart" . }} +{{ include "oramap.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "oramap.selectorLabels" -}} +app.kubernetes.io/name: {{ include "oramap.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} {{- end }} \ No newline at end of file