Hidde Beydals
44c1863334
internal/helm: add repository cache helpers
...
This commits adds simple caching capabilities to the
`ChartRepository`, which makes it possible to load the `Index` from a
defined `CachePath` using `LoadFromCache()`, and to download the index
to a new `CachePath` using `CacheIndex()`.
In addition, the repository tests have been updated to make use of
Gomega, and some missing ones have been added.
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-11-19 17:04:00 +01:00
Hidde Beydals
c4d7e46b90
Drop deprecated `io/ioutil`
...
The package has been deprecated since Go 1.16, see:
https://golang.org/doc/go1.16#ioutil
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-07-29 09:58:00 +02:00
Hidde Beydals
c9eb8f03c0
Switch to Masterminds/semver and pkg/version libs
...
Co-authored-by: Illia Ovchynnikov <illia.ovchynnikov@gmail.com>
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-10-28 12:21:08 +01:00
Illia Ovchynnikov
394b5c3bd0
Pick the most recent chart/tag for ambiguous semver matches
...
Signed-off-by: Illia Ovchynnikov <illia.ovchynnikov@gmail.com>
2020-10-27 20:26:28 +01:00
Hidde Beydals
582c2092b6
Change copyright to Flux authors
...
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-10-27 17:54:22 +01:00
Hidde Beydals
8bf7d8f440
Factor out Helm repo index and chart download
2020-09-24 12:40:04 +02:00
Hidde Beydals
f35dcc3656
Upgrade blang/semver from v3.5.0 to v4.0.0
...
v4.0.0 is fully compatible with Go Modules.
2020-08-31 10:03:47 +02:00
Hidde Beydals
d38b8fe193
Support proper semver ranges for Helm charts
...
This commit changes the semver range parser to `blang/semver`, which
is also used to parse semver tags for GitRepository sources.
2020-08-31 10:03:47 +02:00