chore(argo-cd): Add app.kubernetes.io/version label (#2122)

This commit is contained in:
Aikawa 2023-06-20 22:07:27 +09:00 committed by GitHub
parent eb968668f8
commit 7959fee689
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -3,7 +3,7 @@ appVersion: v2.7.5
kubeVersion: ">=1.23.0-0" kubeVersion: ">=1.23.0-0"
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes. description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd name: argo-cd
version: 5.36.3 version: 5.36.4
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
sources: sources:
@ -26,5 +26,5 @@ annotations:
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252 fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
url: https://argoproj.github.io/argo-helm/pgp_keys.asc url: https://argoproj.github.io/argo-helm/pgp_keys.asc
artifacthub.io/changes: | artifacthub.io/changes: |
- kind: fixed - kind: added
description: Fix helm lint error when `extraObjects` is defined description: Add `app.kubernetes.io/version` label

View file

@ -46,6 +46,7 @@ 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: {{ include "argo-cd.defaultTag" .context }}
{{- with .context.Values.global.additionalLabels }} {{- with .context.Values.global.additionalLabels }}
{{ toYaml . }} {{ toYaml . }}
{{- end }} {{- end }}
@ -123,7 +124,7 @@ nodeAffinity:
{{/* {{/*
Common deployment strategy definition Common deployment strategy definition
- Recreate don't have additional fields, we need to remove them if added by the mergeOverwrite - Recreate don't have additional fields, we need to remove them if added by the mergeOverwrite
*/}} */}}
{{- define "argo-cd.strategy" -}} {{- define "argo-cd.strategy" -}}
{{- $preset := . -}} {{- $preset := . -}}