fix: pass repo credentials when pulling chart
I first got this bug when trying to pull a chart from my private repo. I had set the correct credentials when adding the repo: helm repo add <name> <url> --username <user> --password <pass>
but would still get Error: failed to fetch: 401 Unauthorized
Apparently, we need the option --pass-credentials
when using helm 3.6.1. There's even a note in the version patch
This link may also serve as a reference. It has a way of reproducing the issue as well.
I can confirm that --pass-credentials
fixed my issue.
Edited by Hordur Freyr Yngvason