Skip to content

Commit

Permalink
✨ Refactor template to handle application annotations properly. (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregkonush authored Aug 26, 2024
1 parent 0c270ef commit deb8672
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/templates/_application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ metadata:
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
{{- if hasKey $application.metadata "annotations" }}
{{- if hasKey $application "annotations" }}
annotations:
{{- $application.metadata.annotations | nindent 4 }}
{{- range $key, $value := $application.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
project: default
Expand Down

0 comments on commit deb8672

Please sign in to comment.