Reading a file outside the Helm package via Files.Get #1572
Description
Hi there,
There are some other issues in the Grafana Helm chat due to the way they load a local file, I shared my findings in the issue (here).
In the Helm documentation Accessing Files Inside Templates, it says Some files cannot be accessed through the .Files object, usually for security reasons
and I wasn't sure if this also covers the case of Grafana.
Basically, they have the template to read a file and then you can pass a local file for it to read/load.
This works fine when I have all the files locally, but it doesn't read/load the file when I do helm package grafana/
or try to use it from their official repo grafana/grafana
. As far as I could see, it only works with local files, like:
helm upgrade \
--atomic \
--timeout 2m \
--cleanup-on-fail \
--install grafana \
-f values.yaml \
./
But not from a repo/package, like
helm upgrade \
--atomic \
--timeout 2m \
--cleanup-on-fail \
--install grafana \
-f values.yaml \
grafana/grafana ## or ./grafana-7.3.7.tgz
Is it an expected behaviour/did I miss something in the docs or ...?
Thanks,