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
Stefan Prodan
fd88f934ee
Update chart tests
...
helm.sh/helm/v3 v3.5.2 no longer accepts chart versions that are not strict semver
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-02-23 14:19:56 +02:00
Hidde Beydals
5f4f91ed78
Copy loop iterator var for use by goroutine
...
This fixes a bug where only the last dependency would be downloaded.
https://github.com/golang/go/wiki/CommonMistakes#using-goroutines-on-loop-iterator-variables
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-02-18 01:39:07 +01:00
Hidde Beydals
3cdc897236
Assume local dependency without Helm repository
...
This commit fixes a bug where local chart dependencies would not be
detected correctly due to the absence of a repository URL.
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-01-28 12:28:19 +01:00
Aurel Canciu
a55c502bb4
Fix HelmChart valuesFile chart path restriction
...
As part of the feature implementation to support helm chart
dependencies, the functionality for allowing values files overwriting
from any location scoped to the same source was altered. This should fix
the problem by allowing users to load files from any arbitrary location
as long as it's in the context of the same source from where the helm
chart itself is loaded.
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-12-17 12:57:41 +02:00
Hidde Beydals
29a051c5f4
Refactor and document DependencyManager
...
Mostly to re-use the fields of the structure instead of copying things
around.
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-15 15:37:42 +01:00
Hidde Beydals
8d0b54e431
Make proper use of errgroup context
...
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-15 09:56:40 +01:00
Hidde Beydals
bc890874e1
Add safe guards for relative paths
...
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-15 09:56:40 +01:00
Hidde Beydals
a3f177328a
Move Helm dependency manager to `helm` package
...
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-11-19 09:50:50 +01:00
Aurel Canciu
bfd8d4bc5a
Change copyright wording to accomodate convention
...
Re: fluxcd/toolkit#380
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-10-28 18:08:44 +02:00
Aurel Canciu
f3370d8004
Extract chart repo url normalization logic
...
Move the logic to helm/utils exported as func
NormalizeChartRepositoryURL
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-10-28 14:57:12 +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
Aurel Canciu
684624b1a0
Add support for loading packaged helm charts
...
The feature allows the source-controller to load packaged helm charts
for HelmChart resource artifacts from GitRepository and Bucket sources
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-10-27 11:15:17 +02:00
Hidde Beydals
8bf7d8f440
Factor out Helm repo index and chart download
2020-09-24 12:40:04 +02:00
Hidde Beydals
969a46f4d6
internal/helm: return callback on empty TLS config
...
...and no-op on empty valuesFile string.
2020-09-21 23:27:38 +02:00
Hidde Beydals
7268c8b61d
Refactor and factor out chart values replacement
2020-09-11 12:16:41 +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
Hidde Beydals
a0357172bc
Helm: allow configuration of TLS certs without CA
2020-07-20 21:33:55 +02:00
Hidde Beydals
12f1365f1b
chore: add missing copyright headers
2020-04-19 10:47:09 +02:00
stefanprodan
e88d7219ca
Change artifact path format
...
- move artifact path composition to API
- change path format to `<source-kind>/<source-namespace>/<source-name>/<artifact-filename>`
2020-04-13 19:52:30 +03:00
Hidde Beydals
582dfb234d
internal/helm: add tests for getter helpers
2020-04-13 17:50:48 +02:00
Hidde Beydals
ea610829c3
Helm repository and chart HTTP and TLS auth
2020-04-13 11:47:51 +02:00