Skip to content

Commit

Permalink
Adapt labels to kuberentes recommended ones
Browse files Browse the repository at this point in the history
Signed-off-by: Jonatan Redondo <[email protected]>
  • Loading branch information
jonitich committed Feb 11, 2025
1 parent 84a2c25 commit 78fae2c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions charts/atlantis/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 78fae2c

Please sign in to comment.