Skip to content

Commit

Permalink
chore(argocd): comment out goTemplateOptions and update annotations h…
Browse files Browse the repository at this point in the history
…andling in applications.yaml

Signed-off-by: walnuts1018 <r.juglans.1018@gmail.com>
  • Loading branch information
walnuts1018 committed Feb 9, 2025
1 parent d0f8e8a commit e9ff709
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions k8s/_argocd/applications/apps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: argocd
spec:
goTemplate: true
goTemplateOptions: [ "missingkey=error" ]
# goTemplateOptions: [ "missingkey=error" ]
generators:
- git:
repoURL: https://github.com/walnuts1018/infra
Expand Down Expand Up @@ -39,6 +39,10 @@ spec:
- ServerSideApply=true
- FailOnSharedResource=true
templatePatch: |
{{- with .annotations }}
metadata:
annotations:
{{.name}}: '{{.name}}'
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}

0 comments on commit e9ff709

Please sign in to comment.