Skip to content

Commit

Permalink
docs: add soft documentation for ignoreMissingValueFiles
Browse files Browse the repository at this point in the history
The Helm source has the ability to ignore missing values files since
99d1dca (feat: added a new Helm option ignoreMissingValueFiles,
2022-01-03).
This is however not obvious from reading the user guide on Helm.

Document the parameters along with a reference to the use case which
motivated it.

Signed-off-by: Max Gautier <mg@max.gautier.name>
  • Loading branch information
VannTen committed Apr 26, 2024
1 parent 96e796e commit 1f1999a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/user-guide/helm.md
Expand Up @@ -72,6 +72,22 @@ source:
- values-production.yaml
```

If Helm is passed a non-existing value file during template expansion, it will error out. Missing
values files can be ignored (meaning, not passed to Helm) using the `--ignore-missing-value-files`. This can be
particularly helpful to implement a [default/override
pattern](https://github.com/argoproj/argo-cd/issues/7767#issue-1060611415) with [Application
Sets](./application-set.md).

In the declarative syntax:
```yaml
source:
helm:
valueFiles:
- values-common.yaml
- values-optional-override.yaml
ignoreMissingValueFiles: true
```

## Values

Argo CD supports the equivalent of a values file directly in the Application manifest using the `source.helm.valuesObject` key.
Expand Down

0 comments on commit 1f1999a

Please sign in to comment.