Configure chart commands to use helm clients for OCI and private regi… #245
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Configure chart commands to use helm clients for OCI and private registry support
Please check below, if the PR fulfills these requirements:
Associated Links:
Types of Changes:
This PR extends the chart implementation to use the existing
helm install
mechanics for chart resolution, primarily to support using OCI references and localrepository.yaml
configs needed for accessing private registries. With these changes, users can define their chart manifests likeProposed Changes:
Verification/Testing of Changes:
Create a chart manifest using oci registries and
hauler sync -f oci-hauler.yaml
Or with
hauler store add chart nginx --repo "oci://registry-1.docker.io/bitnamicharts"
For local repositories resolution create another file using a local repo alias and
hauler sync -f aliased-hauler.yaml
or `hauler store add chart rancher --repo rancher-stable
Additional Context:
I recently ran into some issues trying to pull charts from a private registry, which I have a local
repositories.yaml
file configured for. It makes sense why using therepoURL: https://my-private-repo
would 401, but hauler is unable to use the local repositories.yaml config I have which make it difficult to use locally and in CI. Using the helm mechanics though, this config gets read under the hood and as a result picks up OCI support basically for free.