From 78fae2c8f8ef910564dbbf7575f27e28564b5b09 Mon Sep 17 00:00:00 2001 From: Jonatan Redondo Date: Tue, 11 Feb 2025 14:36:10 +0100 Subject: [PATCH] Adapt labels to kuberentes recommended ones Signed-off-by: Jonatan Redondo --- charts/atlantis/templates/_helpers.tpl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/charts/atlantis/templates/_helpers.tpl b/charts/atlantis/templates/_helpers.tpl index af1d295a..1b57c34f 100644 --- a/charts/atlantis/templates/_helpers.tpl +++ b/charts/atlantis/templates/_helpers.tpl @@ -119,11 +119,13 @@ Generates Redis Secret name Common labels */}} {{- define "atlantis.labels" -}} -app: {{ template "atlantis.name" . }} -chart: {{ template "atlantis.chart" . }} +app.kubernetes.io/name: {{ template "atlantis.name" . }} helm.sh/chart: {{ template "atlantis.chart" . }} -release: {{ .Release.Name }} -heritage: {{ .Release.Service }} +app.kubernetes.io/instance: {{ .Release.Name }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion }} +{{- end }} {{- if .Values.commonLabels}} {{ toYaml .Values.commonLabels }} {{- end }}