How would you handle a dependency that is only available in a private HTTP chart repo in CI?
BeginnerScenarioDependencies, Subcharts & Library Charts
Answer
Situation read → helm dependency build fails without repo configuration and credentials.
What I'd do →
- In CI:
helm repo add internal https://charts.internal --username "$U" --password "$P"before building. - Isolate Helm config per job (
HELM_CONFIG_HOME,HELM_CACHE_HOMEin the workspace). - Better: move internal charts to OCI and use
helm registry loginwith short-lived tokens (OIDC to ECR/GHCR).
Why → OCI removes the repo-add step and reuses registry auth you already have for images.
Interview tip → Mention short-lived credentials over static passwords.
More on Dependencies, Subcharts & Library Charts
How do you declare a chart dependency in Helm 3?BeginnerWhat is the difference between `helm dependency update` and `helm dependency build`?IntermediateWhat is `Chart.lock` and why commit it?BeginnerHow does `condition` work on a dependency?BeginnerWhat are `tags` on dependencies?IntermediateWhat does `alias` do on a dependency?Intermediate