feat(argocd-apps): Generate application, applicationset, project with template (#2025)
* add template for application Signed-off-by: Joe Lee <lj_2005@163.com> * update version Signed-off-by: Joe Lee <lj_2005@163.com> * fix issue Signed-off-by: Joe Lee <lj_2005@163.com> * add example for applicationsetTemplates Signed-off-by: Joe Lee <lj_2005@163.com> * fix issue Signed-off-by: Joe Lee <lj_2005@163.com> * merge each of items into one Signed-off-by: Joe Lee <lj_2005@163.com> * update readme Signed-off-by: Joe Lee <lj_2005@163.com> * update doc Signed-off-by: Joe Lee <lj_2005@163.com> * update version Signed-off-by: Joe Lee <lj_2005@163.com> * add template for application Signed-off-by: Joe Lee <lj_2005@163.com> * update version Signed-off-by: Joe Lee <lj_2005@163.com> * fix issue Signed-off-by: Joe Lee <lj_2005@163.com> * fix issue Signed-off-by: Joe Lee <lj_2005@163.com> * merge each of items into one Signed-off-by: Joe Lee <lj_2005@163.com> * move itemTemplates to new file Signed-off-by: Joe Lee <lj_2005@163.com> * discard change for applications.yaml Signed-off-by: Joe Lee <lj_2005@163.com> --------- Signed-off-by: Joe Lee <lj_2005@163.com>
This commit is contained in:
parent
7347a5d781
commit
c3cfd49e96
5 changed files with 144 additions and 2 deletions
15
charts/argocd-apps/templates/item-templates.yaml
Normal file
15
charts/argocd-apps/templates/item-templates.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{{- range .Values.itemTemplates }}
|
||||
{{- if kindIs "string" .template }}
|
||||
{{- $template := .template -}}
|
||||
{{- range .items }}
|
||||
---
|
||||
{{ tpl $template (set . "Template" $.Template) }}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{- $template := .template | toYaml -}}
|
||||
{{- range .items }}
|
||||
---
|
||||
{{ tpl $template (set . "Template" $.Template) }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue