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

401 Unauthorized - using private repositories as a git chart dependency (Aws Ecr) #183

Open
orenlevi111 opened this issue Apr 3, 2024 · 2 comments

Comments

@orenlevi111
Copy link

return nil, errors.Wrap(err, "failed to generate manifests")

Hey, getting the bellow exception:

ERR Unable to get manifests for in error="failed to generate manifests: helm dependency build failed exit status 1: Error: could not download oci://dkr.ecr..amazonaws.com/: pulling from host dkr.ecr..amazonaws.com failed with status code [manifests ]: 401 Unauthorized" event_id=595 repo=

Aws Ecr requires helm login before downloading the charts.
and today I don't see any support for it.
All of my charts are packaged and stored directly in aws Ecr.
I can't use this tool without it. only the values files are stored in github.

@djeebus
Copy link
Collaborator

djeebus commented Apr 4, 2024

Currently we don't have any first-class support for authorizing helm repositories. You could possibly hack it in via mounting configmaps that contain the credentials in ~/.config/helm/repositories.yaml, but that might not work either. Happy to accept PRs to support the feature though!

@orenlevi111
Copy link
Author

fixed it in my fork,
this is the PR: #200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants