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

Private Helm Repository cannot be reached #1

Open
nickperkins opened this issue Nov 29, 2021 · 2 comments
Open

Private Helm Repository cannot be reached #1

nickperkins opened this issue Nov 29, 2021 · 2 comments

Comments

@nickperkins
Copy link

Issue

If a Helm repository requires authentication to access, the pre-commit hook is unable to access it.

Error: looks like "https://charts.private.repo.test/" is not a valid chart repository or cannot be reached: failed to fetch https://charts.private.repo.test/index.yaml : 401 Unauthorized

Reproduction

Add HelmRepository resource that requires authentication for access. For example:

apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
  name: myrepo
  namespace: flux-system
spec:
  interval: 1m0s
  url: https://charts.private.repo.test/
  secretRef:
    name: helmrepo-credentials
@nickperkins
Copy link
Author

FYI helm/helm#9760 might resolve this issue

@tarioch
Copy link
Owner

tarioch commented Nov 30, 2021

thanks for pointing this out, the linked issue looks like a great way to solve this, I think it's not worth doing anything without that, it would be quite complex trying to figure out the username and password from the secretRef

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