From c1491285e5fd2e9a54989e5c69c875affef14dac Mon Sep 17 00:00:00 2001 From: Chi-En Wu Date: Wed, 15 Apr 2020 16:10:58 +0800 Subject: [PATCH] feat: add template `common.configMap` --- templates/_configmap.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 templates/_configmap.yaml diff --git a/templates/_configmap.yaml b/templates/_configmap.yaml new file mode 100644 index 0000000..0a603dd --- /dev/null +++ b/templates/_configmap.yaml @@ -0,0 +1,12 @@ +{{/* vim: set filetype=mustache: */}} + +{{- define "common.configMap.tpl" -}} +apiVersion: v1 +kind: ConfigMap +{{ include "common.metadata" . }} +data: {} +{{- end -}} + +{{- define "common.configMap" -}} +{{- include "common.utils.flattenCall" (list "common.utils.merge" . "common.configMap.tpl") -}} +{{- end -}}