Allow users to configure max chart size and max file size through
CLI flags (--max-chart-size, --max-file-size) and environment
variables (HELM_MAX_CHART_SIZE, HELM_MAX_FILE_SIZE) to address
cases where the security limits introduced in e4da497 are too
restrictive for some legitimate charts.
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
The repo package is internally versioned at v1. Repos were designed
to be versioned. This change moves it to a versioned directory the
same way other packages are now being handled.
Signed-off-by: Matt Farina <matt.farina@suse.com>
A few things are added here:
1. The cache is made to be more generic as a content based cache.
It could be used for other things such as plugins
2. Flags were added to specify the content cache locaiton rather
than rely on the repository cache. Keeping the 2 the same
hid bugs and errors.
3. Tests were added and updated to ensure the cache is used and
tested
Signed-off-by: Matt Farina <matt.farina@suse.com>
The existing check worked for `helm pull downloaded-repo/chart-name`,
but often does not work when using `--repo-url`, depending on the urls
used by the charts.
Signed-off-by: Luna Stadler <luc@spreadshirt.net>