Add a test helm chart for tree inclusion
This commit is contained in:
parent
747afaae50
commit
531e2c8c51
4 changed files with 25 additions and 0 deletions
6
helm/treetest/Chart.yaml
Normal file
6
helm/treetest/Chart.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
apiVersion: v2
|
||||
name: treetest
|
||||
description: Checking tree inclusion in templates
|
||||
type: application
|
||||
version: 1.0.0
|
||||
appVersion: "3.14"
|
10
helm/treetest/templates/configmap.yaml
Normal file
10
helm/treetest/templates/configmap.yaml
Normal 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 }}
|
6
helm/treetest/test/server.yaml
Normal file
6
helm/treetest/test/server.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
email:
|
||||
{{- if .Values.email -}}
|
||||
{{ tpl .Values.email . }}
|
||||
{{- end -}}
|
||||
|
||||
{{ .Values.email }}
|
3
helm/treetest/values.yaml
Normal file
3
helm/treetest/values.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
email:
|
||||
somehost: "abc"
|
||||
someport: 5333
|
Loading…
Reference in a new issue