fix issue
Signed-off-by: Joe Lee <lj_2005@163.com>
This commit is contained in:
parent
24e4a04a0e
commit
859db71e3d
3 changed files with 6 additions and 1 deletions
|
@ -54,11 +54,13 @@ spec:
|
|||
{{- if kindIs "string" .template }}
|
||||
{{- $template := .template -}}
|
||||
{{- range .apps }}
|
||||
---
|
||||
{{ tpl $template (set . "Template" $.Template) }}
|
||||
{{- end }}
|
||||
{{- 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