Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helm/oci: Add context to chart download failure #1013

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

darkowlzz
Copy link
Contributor

Add chart address in the OCI chart download failure error message to make it clear about the chart URL that was attempted to download.
Results in:

chart pull error: failed to download chart for remote reference: failed to get 'oci://localhost:5000/my_repo/grafana:1.1.1': chart doesn't exist

This is based on the test server and the last error would vary depending on the server and test scenario.

For http helm chart, the Go HTTP client should contain the URL in the error. So this is not needed there.

Fixes #1011

Add chart address in the OCI chart download failure error message to make
it clear about the chart URL that was attempted to download.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
@darkowlzz darkowlzz added enhancement New feature or request area/helm Helm related issues and pull requests area/oci OCI related issues and pull requests labels Jan 31, 2023
@darkowlzz darkowlzz changed the title helm/oci: Add context to download failure helm/oci: Add context to chart download failure Jan 31, 2023
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @darkowlzz

@darkowlzz darkowlzz merged commit d54a655 into main Jan 31, 2023
@darkowlzz darkowlzz deleted the helm-oci-download-err branch January 31, 2023 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/helm Helm related issues and pull requests area/oci OCI related issues and pull requests enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

403 Forbidden when using private AWS ECR as HelmRepository
3 participants