diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index 0cf3021..04fd352 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -36,9 +36,11 @@ Common labels */}} {{- define "gitea.labels" -}} helm.sh/chart: {{ include "gitea.chart" . }} +app: {{ include "gitea.name" . }} {{ include "gitea.selectorLabels" . }} {{- if .Chart.AppVersion }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +version: {{ .Chart.AppVersion | quote }} {{- end }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- end -}} diff --git a/templates/gitea/statefulset.yaml b/templates/gitea/statefulset.yaml index 13ee503..1415da6 100644 --- a/templates/gitea/statefulset.yaml +++ b/templates/gitea/statefulset.yaml @@ -19,7 +19,7 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} labels: - {{- include "gitea.selectorLabels" . | nindent 8 }} + {{- include "gitea.labels" . | nindent 8 }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: