Matt Farina
1c4885fce7
Merge pull request #11501 from imanushin/add-test-for-exact-version
...
Add test for exact version selection
1 year ago
Joe Julian
d7805e68ae
Merge pull request #11455 from ksankeerth/dev-11451
...
Strict file permissions for repository.yaml
1 year ago
Matt Farina
4e7e939f19
Updating the Go version in go.mod
...
At this time both Go 1.19 and 1.20 are supported. The version
specified in the go.mod file is the minimum version we expect Helm
to be compiled against. This is the oldest supported version to
support environments where others compile Helm. The Helm project
is using Go 1.20 to build Helm itself.
Updating to Go 1.19 also includes dealing with io/ioutil
deprecation and some additional linting issues around staticcheck.
All the staticcheck issues were in test files so linting was
skipped for those.
Signed-off-by: Matt Farina <matt.farina@suse.com>
1 year ago
Matt Farina
50c22ed7f9
Bump the Go version
...
Needed to gofmt source to meet changes in style
Signed-off-by: Matt Farina <matt.farina@suse.com>
1 year ago
Andrew Block
08593c8dd6
Added support for insecure OCI registries
...
Signed-off-by: Andrew Block <andy.block@gmail.com>
2 years ago
Jakub Warczarek
2fa7b3d1b7
Fix User-Agent header in requests made by Helm
...
Signed-off-by: Jakub Warczarek <jakub.warczarek@gmail.com>
2 years ago
Matt Farina
71ef5f477b
Merge pull request #11524 from sap-contributions/harmonize-url-reference-resolving
...
harmonize URL reference resolving
2 years ago
Matt Farina
5a8e91a010
Merge pull request #11604 from xishengcai/patch-1
...
Update chartrepo.go
2 years ago
caixisheng
c8890e971e
Update chartrepo.go
...
## case :
1. charmuseum is http
2. nginx https ---> chartmuseum
3. domain, CN is IP
## result:
error: failed to prepare chart for release: chart unavailable: looks like "https://120.55.54.50 " is not a valid chart repository or cannot be reached: Get "https://120.55.54.50/index.yaml ": x509: certificate relies on legacy Common Name field, use SANs instead
Signed-off-by: caixisheng <cc710917049@163.com>
2 years ago
Martin Hickey
256e976331
Update repo handling
...
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2 years ago
Philipp Stehle
dfb25e13de
harmonize URL reference resolving
...
Fixes https://github.com/helm/helm/issues/11472
Signed-off-by: Philipp Stehle <philipp.stehle@sap.com>
2 years ago
Igor Manushin
203f31d57b
Add exact version test. See also #7563
...
Signed-off-by: Igor Manushin <igor.manushin@gmail.com>
2 years ago
shankeerthan-kasilingam
33121a80ff
strict file permissions of repository.yaml
...
Fixes #11451
Signed-off-by: shankeerthan-kasilingam <shankeerthan1995@gmail.com>
2 years ago
Matt Farina
90a25751bd
Merge pull request #11172 from crenshaw-dev/cleanup-after-find-chart
...
fix: clean up temp files in FindChartInAuthAndTLSAndPassRepoURL (#11171 )
2 years ago
Martin Hickey
ae828ce0ee
Fix code style
...
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2 years ago
CI
c1bf99c0eb
Merge remote-tracking branch 'origin/main' into cleanup-after-find-chart
2 years ago
CI
3b19ddeb56
one defer
...
Signed-off-by: CI <ci@argoproj.com>
2 years ago
CI
781ddba690
don't change r.CachePath
...
Signed-off-by: CI <ci@argoproj.com>
2 years ago
Matt Farina
b3aa0b4118
Fixing x509 test on darwin
...
Go passes x509 verification off to the platform and different
platforms provide different responses. The Go tests for x509
even have different test files for different platform providers
that check for different messages.
This update haldes darwins difference for x509 authority handling
Closes #11159
Signed-off-by: Matt Farina <matt@mattfarina.com>
2 years ago
CI
cd76fcd805
avoid adding new public function
...
Signed-off-by: CI <ci@argoproj.com>
2 years ago
CI
32a41fcfac
fix tests
...
Signed-off-by: CI <ci@argoproj.com>
2 years ago
CI
24fa3d910d
fix: clean up temp files in FindChartInAuthAndTLSAndPassRepoURL ( #11171 )
...
Signed-off-by: CI <ci@argoproj.com>
2 years ago
Soule BA
42a04c76a4
make token caching an opt in feature
...
If implemented, users have to opt in to cache a token.
Signed-off-by: Soule BA <bah.soule@gmail.com>
2 years ago
Markus Lehtonen
7a08426869
repo: fix repo merge unit test
...
Enable asserts that accidentally excluded from normal test flow.
Signed-off-by: Markus Lehtonen <markus.lehtonen@intel.com>
2 years ago
Eng Zer Jun
2e3e22a003
test: use `T.TempDir` to create temporary test directory
...
The directory created by `T.TempDir` is automatically removed when the
test and all its subtests complete.
Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
3 years ago
Thomas Runyon
353d74e967
refactor internal/experimental/registry to pkg/registry
...
Signed-off-by: Thomas Runyon <runyontr@gmail.com>
3 years ago
Josh Dolitsky
0121f6a328
Merge branch 'main' of github.com:helm/helm into hip-6
...
Signed-off-by: Josh Dolitsky <josh@dolit.ski>
3 years ago
Matthew Fisher
8d8a27ed1f
Merge pull request #9980 from schra/feat/password-stdin
...
feat(helm): add --password-stdin to `helm repo add`
3 years ago
John Howard
82a2abf512
Update oras-go to v0.4.0
...
Signed-off-by: John Howard <howardjohn@google.com>
3 years ago
Matthew Fisher
92bd9558e5
Merge pull request #9998 from bacongobbler/distribution-v3
...
Switch to distribution v3
3 years ago
André Schröder
2131f4cba8
[fix concern] implement test
...
Signed-off-by: André Schröder <andre.schroedr@gmail.com>
3 years ago
Martin Hickey
d83dd95cae
Merge pull request #9774 from yxxhero/fix_msg_when_index_yaml_empty
...
Add a more friendly prompt when index.yaml is empty.
3 years ago
Matthew Fisher
4801818f7c
Switch to distribution v3
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
3 years ago
Nicolas De Loof
663c569887
Migrate to oras-go library
...
see https://github.com/deislabs/oras/pull/265
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
3 years ago
Josh Dolitsky
30a8ce5986
Reverse DependingChart test logic, add debug logs
...
Signed-off-by: Josh Dolitsky <josh@dolit.ski>
3 years ago
Josh Dolitsky
d296ddf026
Merge branch 'main' of github.com:helm/helm into hip-6
...
Signed-off-by: Josh Dolitsky <josh@dolit.ski>
3 years ago
Josh Dolitsky
8202ccd699
Remove LoginResult/LogoutResult types
...
Signed-off-by: Josh Dolitsky <josh@dolit.ski>
3 years ago
Mathieu Parent
dbb4eb6b75
Ensure RawPath match Path when resolving reference
...
Signed-off-by: Mathieu Parent <math.parent@gmail.com>
3 years ago
Josh Dolitsky
cd27cf660f
Merge branch 'main' of github.com:helm/helm into hip-6
...
Signed-off-by: Josh Dolitsky <josh@dolit.ski>
3 years ago
Matt Farina
17ed9c4cd3
tweak basic handling
...
Signed-off-by: Matt Farina <matt.farina@suse.com>
3 years ago
Josh Dolitsky
00985cad6b
Implement changes proposed in HIP 6
...
For more information, please see the following URL:
https://github.com/helm/community/blob/main/hips/hip-0006.md
Note: OCI support remains experimental, and you are still
required to set HELM_EXPERIMENTAL_OCI=1 in your environment.
Signed-off-by: Josh Dolitsky <josh@dolit.ski>
3 years ago
yxxhero
20e2aec793
Add a more friendly prompt when index.yaml is empty.
...
Signed-off-by: yxxhero <aiopsclub@163.com>
3 years ago
Josh Soref
2bf8fdf45d
chore: Spelling ( #9410 )
...
* spelling: annotate
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: asserts
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: behavior
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: binary
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: contain
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: copied
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: dependency
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: depending
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: deprecated
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: doesn't
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: donot
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: github
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: inputting
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: iteration
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: jabberwocky
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: kubernetes
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: length
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: mismatch
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: multiple
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: nonexistent
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: outputs
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: panicking
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: plugins
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: parsing
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: porthos
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: regular
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: resource
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: repositories
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: something
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: strict
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: string
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: unknown
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
4 years ago
Adam Reese
657ce552cb
fix(*): Validate metadata semver and printable characters
...
ref: https://github.com/helm/helm/security/advisories/GHSA-c38g-469g-cmgx
* Skip invalid chart versions when reading the repository index file or
when programmatically adding a chart version.
* Adds semver validation and strips non-printable characters and
normalizes spaces for string fields in Metadata.Validate()
* Fixes a unit test that was pulling a remote repo. Now uses a local
repo.
* Fixes ignored error in repo update command
Signed-off-by: Adam Reese <adam@reese.io>
4 years ago
Peter Engelbert
3028c55858
Clean up imports and add doc comments
...
Additionally, revert `NewPull()` to its existing signature.
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
4 years ago
Peter Engelbert
3ad08f3ea9
Implement `helm pull` for OCI registries
...
* Implement `helm dep update` for oci dependencies
* New unit tests
* Remove `helm chart pull` command
* New `helm pull` does not depend on registry cache
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
4 years ago
Ma Xinjian
1aa6e928ce
Cleanup tempfiles introduced by unit tests under pkg/
...
Signed-off-by: Ma Xinjian <maxj.fnst@cn.fujitsu.com>
4 years ago
Matt Butcher
fe2d7f7792
this rewrites a whole bunch of old repo URLs to the new repo URL ( #8902 )
...
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
4 years ago
Matt Farina
6297c021cb
Merge pull request #8795 from mattfarina/feat-8767
...
Adding annotation to index.yaml file
4 years ago
zouyu
a167b3fc87
Fix wrong function's name in comment
...
Signed-off-by: zouyu <zouy.fnst@cn.fujitsu.com>
4 years ago