I have a helm deployment that includes a several configmaps.
I would like to add a few rather large files to it and I thought I coud put them in a an external directory
my-app/values.yaml
my-app/conf/my-large-file1.conf
my-app/conf/my-large-file2.conf
my-app/templates/configmaps.yaml
I thought I could use include but this did not work
---
apiVersion: v1
kind: ConfigMap
metadata:
name: example1
data:
index.html: {{ include "/conf/my-large-file1.conf" . }}
Error:
template: my-app/templates/configmaps.yaml:23:17: executing "my-app/templates/configmaps.yaml" at <include "/conf/my-large-file1.conf" .>: error calling include: template: no template "/conf/my-large-file1.conf" associated with tem\
plate "gotpl"
I then tried different things with {{ $.Files.Get "conf/my-large-file1.conf" }} but got weird scoping errors.
So my hope is that someone can tell me how to do it correctly
$ helm version
version.BuildInfo{Version:"v3.11.1+6.el8", GitCommit:"66bfc44f827aea6eb8e001150914170ac0d49e2d", GitTreeState:"clean", GoVersion:"go1.18.9"}