Files
May ZhangandGitHub 141602187f fix: failUnmarshal only checks for file resembles a resource (#4729)
* fix: failUnmarshal only checked for file contains information which has apiVersion, kind and metadata.

Signed-off-by: May Zhang <[email protected]>

* add negative test case

Signed-off-by: May Zhang <[email protected]>

* modified negative test data

Signed-off-by: May Zhang <[email protected]>

* modified negative test data

Signed-off-by: May Zhang <[email protected]>
2020-11-03 15:46:51 -08:00

15 lines
372 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "stuff.fullname" . }}-init
labels:
app: {{ template "stuff.name" . }}
chart: {{ template "stuff.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
data:
{{- $files := .Files }}
{{- range tuple "init/init.sh" }}
{{ . }}: |-
{{ $files.Get . }}
{{ end }}