Update: additional labels

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
This commit is contained in:
Nicolas Lamirault 2021-09-13 17:47:33 +02:00
parent df36531b05
commit 2d9c7d1410
No known key found for this signature in database
GPG key ID: 65D6BB0526B7051F
3 changed files with 7 additions and 2 deletions

View file

@ -125,6 +125,10 @@ helm.sh/chart: {{ include "argo-cd.chart" .context }}
{{ include "argo-cd.selectorLabels" (dict "context" .context "component" .component "name" .name) }}
app.kubernetes.io/managed-by: {{ .context.Release.Service }}
app.kubernetes.io/part-of: argocd
app.kubernetes.io/version: {{ .context.Chart.AppVersion | quote }}
{{- if .context.Values.global.additionalLabels }}
{{ toYaml .context.Values.global.additionalLabels }}
{{- end }}
{{- end }}
{{/*

View file

@ -6,7 +6,6 @@ metadata:
name: {{ template "argo-cd.redis.fullname" . }}
labels:
{{- include "argo-cd.labels" (dict "context" . "component" .Values.redis.name "name" .Values.redis.name) | nindent 4 }}
app.kubernetes.io/version: {{ .Values.redis.image.tag | quote }}
spec:
selector:
matchLabels:
@ -21,7 +20,6 @@ spec:
{{- end }}
labels:
{{- include "argo-cd.labels" (dict "context" . "component" .Values.redis.name "name" .Values.redis.name) | nindent 8 }}
app.kubernetes.io/version: {{ .Values.redis.image.tag | quote }}
{{- if .Values.redis.podLabels }}
{{- toYaml .Values.redis.podLabels | nindent 8 }}
{{- end }}

View file

@ -21,6 +21,9 @@ global:
# - ip: 10.20.30.40
# hostnames:
# - git.myhostname
# Additional labels to add to all resources
additionalLabels: {}
# app: argo-cd
## Controller
controller: