What are multiple sources, and what is the `$values` reference?
IntermediateConceptHelm, Kustomize & Multiple Sources
Answer
spec.sources (plural) lets one Application combine several sources. The most common use is a remote Helm chart plus values from your Git repo:
sources:
- repoURL: https://charts.bitnami.com/bitnami
chart: redis
targetRevision: 20.1.0
helm:
valueFiles:
- $values/platform/redis/values-prod.yaml
- repoURL: https://github.com/org/cfg.git
targetRevision: main
ref: values
The source with ref: values is not rendered itself; $values resolves to its checkout root. Without multiple sources you would need an umbrella chart.
More on Helm, Kustomize & Multiple Sources
How does Argo CD deploy a Helm chart?BeginnerWhat are the consequences of Argo CD using `helm template` rather than `helm install`?IntermediateWhat are the ways to provide Helm values in an Application?BeginnerHow do you deploy a chart from an OCI registry?IntermediateHow does Argo CD deploy Kustomize, and what overrides can the Application set?BeginnerWhat are the caveats of multiple sources?Advanced