feat: allow arguments to be passed to templates
This commit is contained in:
@ -1,14 +1,15 @@
|
||||
{{/* vim: set filetype=mustache: */}}
|
||||
|
||||
{{- define "common.secret.tpl" -}}
|
||||
{{- $top := first . -}}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
{{ include "common.metadata" . | nindent 2 }}
|
||||
{{ include "common.metadata" (list $top) | nindent 2 }}
|
||||
type: Opaque
|
||||
data: {}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "common.secret" -}}
|
||||
{{- include "common.utils.flattenCall" (list "common.utils.merge" . "common.secret.tpl") -}}
|
||||
{{- include "common.utils.merge" (append . "common.secret.tpl") -}}
|
||||
{{- end -}}
|
||||
|
Reference in New Issue
Block a user