Antonio Gamez Diaz
3607cd7110
Avoid nil dereference if passing a nil resolver
...
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
1 year ago
Antonio Gamez Diaz
197d1defbf
Add required changes after merge
...
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
1 year ago
Antonio Gamez Diaz
ad6f45819a
Merge branch 'main'
...
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Conflicts:
pkg/registry/client.go
pkg/registry/utils_test.go
1 year ago
Joe Julian
819931b226
Merge pull request #12237 from cuisongliu/auth_basic
...
fix(main): fix basic auth for helm pull or push
1 year ago
Scott Rigby
7d190be0d0
Merge pull request #12128 from aryan9600/plain-http
...
oci: Add flag --plain-http to enable working with HTTP registries
1 year ago
cuisongliu
4a27baaffc
fix(main): fix basic auth for helm pull or push
...
Signed-off-by: cuisongliu <cuisongliu@qq.com>
1 year ago
Andrew Block
d72b42da61
Added tests for created OCI annotation time format
...
Signed-off-by: Andrew Block <andy.block@gmail.com>
2 years ago
Andrew Block
c4870d990c
Add created OCI annotation
...
Signed-off-by: Andrew Block <andy.block@gmail.com>
2 years ago
Sanskar Jaiswal
6defb96dac
oci: add tests for plain HTTP and insecure HTTPS registries
...
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2 years ago
Sanskar Jaiswal
2538b927a7
oci: Add flag `--plain-http` to enable working with HTTP registries
...
Add a new flag `--plain-http` to the following commands:
* `helm install`
* `helm pull`
* `helm push`
* `helm template`
* `helm upgrade`
* `helm show`
This flag instructs the registry client to use plain HTTP connections,
thus enabling upload/download of charts from OCI registries served at
an HTTP endpoint.
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2 years ago
Antonio Gamez Diaz
770c51ef0a
Add ClientOptResolver to test util file
...
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
2 years ago
Antonio Gamez Diaz
e43ffb807e
Merge branch 'main'
...
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Conflicts:
pkg/registry/client.go
pkg/registry/client_test.go
2 years ago
Andrew Block
f900e9f1b1
Attach annotations to OCI artifacts
...
Signed-off-by: Andrew Block <andy.block@gmail.com>
2 years ago
Matt Farina
046646c944
Handle failed DNS case for Go 1.20+
...
Go 1.20 introduced DNS/CNAME handling changes. This can cause an
IP address represented in hex, oct, etc to be looked up as DNS and
fail. This change introduces a mock DNS resolver.
Note, with the mock resolver, we don't need to use 0x7f000001 any
longer. Keeping because it was already there.
Signed-off-by: Matt Farina <matt.farina@suse.com>
2 years 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>
2 years ago
Andrew Block
08593c8dd6
Added support for insecure OCI registries
...
Signed-off-by: Andrew Block <andy.block@gmail.com>
2 years ago
Soule BA
b0ecb21056
Enable custom certificates option for OCI
...
If implemented, users will be able to use custom certificates and CA to
while interacting with OCI registries.
Signed-off-by: Soule BA <bah.soule@gmail.com>
2 years ago
Antonio Gamez Diaz
62be6f1af6
ref(helm): export DescriptorPullSummary fields
...
Exporting those fields enable 3rd party users to build their own mocked PullResult responses.
Related #10623
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
3 years ago
Antonio Gamez Diaz
80bc7df782
feat(helm): add 'ClientOptResolver' ClientOption
...
This is a way to make the containerd resolver configurable by third-party users.
Related #10623
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
3 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>
3 years ago
Josh Dolitsky
59dbda915f
Merge pull request #10558 from sabre1041/bearer-token-oci
...
Management of bearer tokens for tag listing
3 years ago
Martin Hickey
f0fd37d2c5
Replace golint with revive
...
golint which is used as one of the sublinters in golangci-lint is deprecated.
It is replaced with revive which is a drop-in replacement.
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
Co-authored-by: Martin Mulholland <mmulholl@redhat.com>
3 years ago
Andrew Block
c8a2559236
Management of bearer tokens for tag listing
...
Signed-off-by: Andrew Block <andy.block@gmail.com>
3 years ago
David Peraza
9f869c6b21
Removing all the checks for oci experimental flag
...
Signed-off-by: David Peraza <dperaza@redhat.com>
3 years ago
Thomas Runyon
91a46ad14f
move paths for updated directory location
...
Signed-off-by: Thomas Runyon <runyontr@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
Matthew Fisher
fe952445bd
feat(cmd): put OCI commands behind a feature gate
...
This adds a new `gates` package used for interacting with feature gates. It also marks the OCI registry work as experimental, signalling to users that it is not a stable feature of Helm.
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Matthew Fisher
2045fab01f
ref(action): remove ParseReferenceWithChartDefaults
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
6 years ago
Josh Dolitsky
b3fd254991
Use chart version as default tag when saving
...
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
6 years ago
Marc Khouzam
81321532e6
Fix linter issuers
...
Signed-off-by: Marc Khouzam <marc.khouzam@ville.montreal.qc.ca>
6 years ago
Josh Dolitsky
240dd53e78
Helm 3: set custom manifest config media type on chart push ( #5719 )
...
* set custom manifest config media type
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* use v1 for manifest schema
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* remove unneeded debug flag
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* update to new config media type
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
6 years ago
Josh Dolitsky
5f1128b5f7
pass debug option to registry client
...
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
6 years ago
Josh Dolitsky
a12a396aab
Helm 3: registry login/logout ( #5597 )
...
* login/logout placeholders
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* use latest oras
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* use docker auth system
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* working login+push
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* working on tests
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* fix typo in htpasswd
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* rename credsfile to config.json
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* add flags for username/password
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* disable logout test broken on linux
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* upgrade to oras 0.4.0
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* re-enable logout test
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* panic for uncaught errors
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* move login/logout to new registry subcommand
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
6 years ago
Adam Reese
e458a67f0c
ref(pkg/chart): add validation method to chart
...
Consolidate validation of Chart.yaml.
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Adam Reese
295092cd7d
ref(pkg/action): refactoring dup code and linter fixes
...
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Adam Reese
895e9192d4
feat(*): use vanity import helm.sh/helm
...
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Adam Reese
21d3a40f3b
feat(tests): replace gometalinter with golangci-lint
...
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Adam Reese
e51a9b90c9
Merge pull request #5284 from adamreese/v3/make-format
...
feat(Makefile): add formatting target
6 years ago
Martin Hickey
45fb4b1c44
Fix linter warnings
...
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
6 years ago
Adam Reese
f791421fab
feat(Makefile): add formatting target
...
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Josh Dolitsky
16b59bfe5b
Helm 3: fix "latest" tag bug ( #5279 )
...
* add extra ref parsing, validation
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* add fix for missing locator
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* add repo and tag fields for clarity
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* small refector
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
6 years ago
Josh Dolitsky
a32f8ebb37
Helm 3: initial registry support ( #5243 )
...
* initial registry support
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* fix dependency mess
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* add extra chart command output
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* sanitize registry path (windows fix)
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* store all sha256 blobs in same dir
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* switch to use chartutil.SaveDir
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* populate chart command long descriptions
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* remove test cache dir in teardown
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* add long description of chart export
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
* clean up table rows code
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
6 years ago
jackgr
94f78a5824
Remove pkg/registry since pkg/repo refactoring is complete
9 years ago
jackgr
893b740ea0
Move kubernetes types out of common
9 years ago
Adam Reese
1805e15601
fix(*): update import paths for helm repo naming
9 years ago
Matt Butcher
c849c7059e
fix(test-style): fix formatting and comments
...
This fixes a number of formatting and style issues.
Closes #370
9 years ago
Matt Butcher
8cd0248caf
fix(*): add license header to Go files
...
Closes #311 .
9 years ago
Adam Reese
4134afee10
style(*): gofmt
9 years ago
Adam Reese
e43286b6f9
ref(*): isolate go code to /cmd and /pkg
9 years ago