fix(argocd-apps): don't render empty app description (#2911)
* fix(argocd-apps): don't render empty app description Signed-off-by: Zoltán Reegn <zoltan.reegn@gmail.com> * chore: Apply suggestions from code review Signed-off-by: Marco Maurer (-Kilchhofer) <mkilchhofer@users.noreply.github.com> --------- Signed-off-by: Zoltán Reegn <zoltan.reegn@gmail.com> Signed-off-by: Marco Maurer (-Kilchhofer) <mkilchhofer@users.noreply.github.com> Co-authored-by: Marco Maurer (-Kilchhofer) <mkilchhofer@users.noreply.github.com>
This commit is contained in:
parent
687392688f
commit
a344d64fbd
2 changed files with 6 additions and 4 deletions
|
@ -2,7 +2,7 @@ apiVersion: v2
|
|||
name: argocd-apps
|
||||
description: A Helm chart for managing additional Argo CD Applications and Projects
|
||||
type: application
|
||||
version: 2.0.0
|
||||
version: 2.0.1
|
||||
home: https://github.com/argoproj/argo-helm
|
||||
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
||||
keywords:
|
||||
|
@ -17,5 +17,5 @@ annotations:
|
|||
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
|
||||
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
||||
artifacthub.io/changes: |
|
||||
- kind: added
|
||||
description: make the chart use maps instead of lists
|
||||
- kind: fixed
|
||||
description: not rendering empty app description
|
||||
|
|
|
@ -25,7 +25,9 @@ spec:
|
|||
{{- with $projectData.permitOnlyProjectScopedClusters }}
|
||||
permitOnlyProjectScopedClusters: {{ . }}
|
||||
{{- end }}
|
||||
description: {{ $projectData.description }}
|
||||
{{- with $projectData.description }}
|
||||
description: {{ . }}
|
||||
{{- end }}
|
||||
{{- with $projectData.sourceRepos }}
|
||||
sourceRepos:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
|
|
Loading…
Reference in a new issue