fix issue
Signed-off-by: Joe Lee <lj_2005@163.com>
This commit is contained in:
parent
ca437f12ad
commit
66d8fbe30f
3 changed files with 5 additions and 1 deletions
|
@ -60,6 +60,7 @@ spec:
|
|||
{{- else }}
|
||||
{{- $template := .template | toYaml -}}
|
||||
{{- range .apps }}
|
||||
---
|
||||
{{ tpl $template (set . "Template" $.Template) }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
|
@ -82,11 +82,13 @@ spec:
|
|||
{{- if kindIs "string" .template }}
|
||||
{{- $template := .template -}}
|
||||
{{- range .appSets }}
|
||||
---
|
||||
{{ tpl $template (set . "Template" $.Template) }}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{- $template := .template | toYaml -}}
|
||||
{{- range .appSets }}
|
||||
---
|
||||
{{ tpl $template (set . "Template" $.Template) }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
|
@ -68,16 +68,17 @@ spec:
|
|||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
---
|
||||
{{- range .Values.projectTemplates }}
|
||||
{{- if kindIs "string" .template }}
|
||||
{{- $template := .template -}}
|
||||
{{- range .projects }}
|
||||
---
|
||||
{{ tpl $template (set . "Template" $.Template) }}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{- $template := .template | toYaml -}}
|
||||
{{- range .projects }}
|
||||
---
|
||||
{{ tpl $template (set . "Template" $.Template) }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Reference in a new issue