Update: additional labels
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
This commit is contained in:
parent
df36531b05
commit
2d9c7d1410
3 changed files with 7 additions and 2 deletions
|
@ -125,6 +125,10 @@ helm.sh/chart: {{ include "argo-cd.chart" .context }}
|
||||||
{{ include "argo-cd.selectorLabels" (dict "context" .context "component" .component "name" .name) }}
|
{{ include "argo-cd.selectorLabels" (dict "context" .context "component" .component "name" .name) }}
|
||||||
app.kubernetes.io/managed-by: {{ .context.Release.Service }}
|
app.kubernetes.io/managed-by: {{ .context.Release.Service }}
|
||||||
app.kubernetes.io/part-of: argocd
|
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 }}
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
|
|
|
@ -6,7 +6,6 @@ metadata:
|
||||||
name: {{ template "argo-cd.redis.fullname" . }}
|
name: {{ template "argo-cd.redis.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "argo-cd.labels" (dict "context" . "component" .Values.redis.name "name" .Values.redis.name) | nindent 4 }}
|
{{- 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:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
@ -21,7 +20,6 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "argo-cd.labels" (dict "context" . "component" .Values.redis.name "name" .Values.redis.name) | nindent 8 }}
|
{{- 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 }}
|
{{- if .Values.redis.podLabels }}
|
||||||
{{- toYaml .Values.redis.podLabels | nindent 8 }}
|
{{- toYaml .Values.redis.podLabels | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -21,6 +21,9 @@ global:
|
||||||
# - ip: 10.20.30.40
|
# - ip: 10.20.30.40
|
||||||
# hostnames:
|
# hostnames:
|
||||||
# - git.myhostname
|
# - git.myhostname
|
||||||
|
# Additional labels to add to all resources
|
||||||
|
additionalLabels: {}
|
||||||
|
# app: argo-cd
|
||||||
|
|
||||||
## Controller
|
## Controller
|
||||||
controller:
|
controller:
|
||||||
|
|
Loading…
Reference in a new issue