From 999118590bd29b2e15ded58c8dab7ad32b31b607 Mon Sep 17 00:00:00 2001 From: Chi-En Wu Date: Wed, 15 Apr 2020 16:11:13 +0800 Subject: [PATCH] feat: add template `common.secret` --- templates/_secret.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 templates/_secret.yaml diff --git a/templates/_secret.yaml b/templates/_secret.yaml new file mode 100644 index 0000000..0d25ed9 --- /dev/null +++ b/templates/_secret.yaml @@ -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 -}}