Add a test helm chart for tree inclusion

This commit is contained in:
Nico Schottelius 2022-03-29 17:29:07 +02:00
parent 747afaae50
commit 531e2c8c51
4 changed files with 25 additions and 0 deletions

6
helm/treetest/Chart.yaml Normal file
View File

@ -0,0 +1,6 @@
apiVersion: v2
name: treetest
description: Checking tree inclusion in templates
type: application
version: 1.0.0
appVersion: "3.14"

View File

@ -0,0 +1,10 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-conf
labels:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: fancyapp
data:
{{ tpl (.Files.Glob "test/*").AsConfig . | indent 2 }}

View File

@ -0,0 +1,6 @@
email:
{{- if .Values.email -}}
{{ tpl .Values.email . }}
{{- end -}}
{{ .Values.email }}

View File

@ -0,0 +1,3 @@
email:
somehost: "abc"
someport: 5333