Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading a file outside the Helm package via Files.Get #1572

Open
LozanoMatheus opened this issue Apr 6, 2024 · 0 comments
Open

Reading a file outside the Helm package via Files.Get #1572

LozanoMatheus opened this issue Apr 6, 2024 · 0 comments

Comments

@LozanoMatheus
Copy link

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant