How do you vendor and patch a third-party subchart safely?
AdvancedConceptDependencies, Subcharts & Library Charts
Answer
Order of preference:
- Use its values (most needs are covered).
- Use a post-renderer (Kustomize patch) without forking.
- Pull and vendor it (
helm pull repo/chart --version X --untar -d charts/), commit it, and apply a small, documented patch, tracking upstream with a script.
Forking means you own upgrades and CVE fixes forever, so we only do it when upstream is unmaintained.
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