feat: add template common.secret

This commit is contained in:
Chi-En Wu
2020-04-15 16:11:13 +08:00
parent c1491285e5
commit 999118590b

13
templates/_secret.yaml Normal file
View File

@ -0,0 +1,13 @@
{{/* vim: set filetype=mustache: */}}
{{- define "common.secret.tpl" -}}
apiVersion: v1
kind: Secret
{{ include "common.metadata" . }}
type: Opaque
data: {}
{{- end -}}
{{- define "common.secret" -}}
{{- include "common.utils.flattenCall" (list "common.utils.merge" . "common.secret.tpl") -}}
{{- end -}}