k8s/helm-charts/dashy/charts/common/templates/spawner/_extraTpl.tpl

14 lines
376 B
Smarty
Raw Normal View History

2023-11-16 19:42:02 +10:00
{{- define "tc.v1.common.spawner.extraTpl" -}}
{{- range $item := .Values.extraTpl }}
{{- if not $item -}}
{{- fail "Extra tpl - Expected non-empty <extraTpl> item" -}}
{{- end }}
---
{{- if kindIs "string" $item }}
{{- tpl $item $ | nindent 0 }}
{{- else }}
{{- tpl ($item | toYaml) $ | nindent 0 }}
{{- end }}
{{- end }}
{{- end }}