For HTTP/repo-based chart pulls, we calculate the SHA-256 checksum of the
downloaded .tgz archive file, not a manifest digest. This change updates
the output terminology to be more accurate:
- HTTP pulls: "Checksum: sha256:..." (file checksum)
- OCI pulls: "Digest: ..." (manifest digest, unchanged)
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>
Plus handling of p.Version if we are not able to extract the version...
not sure is what we want..
Plus handling of tar.gz
Plus a little refactoring
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
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>