Commit Graph

30 Commits

Author SHA1 Message Date
Andrew Block df98e18eb7
Working oci code without providing versions
Signed-off-by: Andrew Block <andy.block@gmail.com>
2022-01-11 21:47:03 -05:00
Andrew Block 0fae7f5008
Updated tag resolver logic
Signed-off-by: Andrew Block <andy.block@gmail.com>
2022-01-11 21:47:03 -05:00
Andrew Block 9a7c362dd1
Initial tag listing support
Signed-off-by: Andrew Block <andy.block@gmail.com>
2022-01-11 21:45:30 -05:00
Allen Bai e3897ad6b1
registry/client: use NewClientWithDockerFallback from oras v1.1.0-rc3
Uses NewClientWithDockerFallback to always use Docker config and
modifies go.mod to use oras v1.1.0-rc3.

Ref:
 - https://github.com/helm/helm/pull/10536#issuecomment-1010144075
 - https://github.com/oras-project/oras-go/pull/92
Signed-off-by: Allen Bai <abai@redhat.com>
2022-01-11 15:19:31 -05:00
Josh Wolf fed0d31bf5 ensure consistency in registry client Push/Pull function signatures. ensure message is only printed when tags contain a replaced character
Signed-off-by: Josh Wolf <josh@wolfs.io>
2022-01-10 15:06:18 -07:00
Josh Wolf fb0eeebf66 add oci reference validation and tag scoped (+) replacement to registry client Push/Pull
Signed-off-by: Josh Wolf <josh@wolfs.io>
2022-01-10 11:09:21 -07:00
Scott Rigby 8424bc2b60
Update registry underscore message with semver note for extra clarity
Add newline to registry underscore message

Signed-off-by: Scott Rigby <scott@r6by.com>
2022-01-10 09:47:26 -05:00
Scott Rigby 4aacbc44e0
Move plus/underscore change to inside Client. Compare original ref for strict mode
Signed-off-by: Scott Rigby <scott@r6by.com>
2022-01-08 18:50:29 -05:00
Josh Wolf fae5009382 ensure error is correctly handled when generating chart's oci manifest
Signed-off-by: Josh Wolf <josh@joshwolf.dev>
2021-11-05 11:01:14 -06:00
Josh Wolf d2d8e52401 modify oci chart push/pull manifest test values to represent new order sorted by oras
Signed-off-by: Josh Wolf <josh@joshwolf.dev>
2021-11-05 10:53:07 -06:00
Josh Wolf 7cec93d9fb upgrade oras to 0.5.0, refactor client oci logic to use new oras.Copy()
Signed-off-by: Josh Wolf <josh@joshwolf.dev>
2021-10-29 15:41:04 -06:00
Matt Farina 81f0df0ea6
Merge pull request #10182 from spectrocloud/oci-allow-any-media-type
changes to support any mediatype for layers on download
2021-10-13 09:28:53 -04:00
Kai Takac 52cbc2f49c Fix default registry config path of oci protocol provider
Signed-off-by: Kai Takac <kai.takac@gmail.com>
2021-10-04 16:13:12 +02:00
LochanRn 9e29f1619b changes to support any mediatype for layers on download
Signed-off-by: LochanRn <rajanaga_ra@srmuniv.edu.in>
2021-09-24 21:27:10 +05:30
Josh Dolitsky 8202ccd699
Remove LoginResult/LogoutResult types
Signed-off-by: Josh Dolitsky <josh@dolit.ski>
2021-07-07 15:44:43 -05:00
Josh Dolitsky bfa5036a1a
consolidate registry source files
Signed-off-by: Josh Dolitsky <josh@dolit.ski>
2021-06-28 11:19:17 -04:00
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>
2021-06-08 02:43:13 -04:00
cndoit18 a79cad5539
support max-col-width parameters
support commands:
- helm chart list
- helm dependency list

Signed-off-by: cndoit18 <cndoit18@outlook.com>
2021-05-11 11:48:45 +08:00
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>
2020-12-11 21:44:46 -06:00
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>
2020-12-11 21:44:30 -06:00
Peter Engelbert 7e9a83184c
Determine chart digest by manifest (#8249)
Currently, whenever the chart is printed, the digest of the .tar.gz
content layer is printed as the digest. The manifest digest is important
for OCI purposes, particularly in pushing to a registry.

Resolves #8248.

Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
2020-06-29 16:55:01 -05:00
EItanya 872d9bcb0e Merge branch 'master' of github.com:helm/helm into helm-7351 2020-03-03 20:18:57 -05:00
Josh Dolitsky 7ce29e12fa
ref(go.mod): oras v0.8.1 (#6862)
* ref(go.mod): oras v0.8.1

Signed-off-by: Josh Dolitsky <393494+jdolitsky@users.noreply.github.com>

* update various module versions

Signed-off-by: Josh Dolitsky <393494+jdolitsky@users.noreply.github.com>

* upgrade oras v0.8.1

Signed-off-by: Josh Dolitsky <393494+jdolitsky@users.noreply.github.com>

* upgrade to oras 0.8.1 release

Signed-off-by: Josh Dolitsky <393494+jdolitsky@users.noreply.github.com>

* lock to oras release (0.8.1)

Signed-off-by: Josh Dolitsky <393494+jdolitsky@users.noreply.github.com>
2020-02-04 13:54:13 -06:00
EItanya 17dc43f054 added config file string
Signed-off-by: EItanya <eitan.yarmush@solo.io>
2020-01-08 14:06:43 -05:00
Matt Farina 9bc7934f35
Updating the module for v3 as the major version
Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-10-03 14:27:05 -04:00
Adam Reese f76b5f21ad
Merge pull request #6272 from adamreese/feat/initless
feat(cmd/helm): remove need for helm init command
2019-08-26 10:26:11 -07:00
Josh Dolitsky af06037d23
chore(registry): upgrade to oras v0.7.0 (#6285)
Also:
* add --insecure flag to "registry login"
* fix bug parsing correct tag when port number present

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
2019-08-26 11:29:01 -05:00
Adam Reese b6fdd8783b
feat(cmd/helm): remove need for helm init command
* allow repository config via cli
* make `helm repo add` create repo config file if it does not exist
* squash a ton of bugs

Signed-off-by: Adam Reese <adam@reese.io>
2019-08-22 23:31:50 -07:00
Josh Dolitsky 6095070817
ref(internal/experimental/registry): pkg refactor (#6205)
No more magic separating the metadata from chart tarball - charts are
pushed to registry as a single tarball layer with Chart.yaml in tact.

No more fragile custom symlink chart storage, now following
the OCI Image Layout Specification for chart filesystem cache.

Also:
- Update to ORAS 0.6.0
- Simplify registry client setup with NewClientWithDefaults()
- Remove needless annotations and constants

Fixes #6068
Fixes #6141

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
2019-08-12 15:17:18 -05:00
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>
2019-08-08 15:25:17 -07:00