mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 00:37:27 +00:00
Merge pull request #139 from fluxcd/docs/helm-valuesfrom
docs/helm: guide on values from resources
This commit is contained in:
commit
91c8cb197f
1 changed files with 26 additions and 0 deletions
|
|
@ -93,6 +93,32 @@ helm-controller.
|
|||
See the [`HelmRelease` CRD docs](../components/helm/helmreleases.md)
|
||||
for more details.
|
||||
|
||||
## Refer to values in `ConfigMap` and `Secret` resources
|
||||
|
||||
It is possible to define a list of `ConfigMap` and `Secret` resources
|
||||
from which to take values. The values are merged in the order given,
|
||||
with the later values overwriting earlier. These values always have a
|
||||
lower priority than the values inlined in the `HelmRelease` via the
|
||||
`spec.values` parameter.
|
||||
|
||||
```yaml
|
||||
spec:
|
||||
valuesFrom:
|
||||
- kind: ConfigMap
|
||||
name: prod-env-values
|
||||
- kind: Secret
|
||||
name: prod-secret-values
|
||||
valuesKey: secret.yaml
|
||||
```
|
||||
|
||||
The definition of the listed keys is as follows:
|
||||
|
||||
- `kind`: Kind of the values referent (`ConfigMap` or `Secret`).
|
||||
- `name`: Name of the values referent, in the same namespace as the
|
||||
`HelmRelease`.
|
||||
- `valuesKey` _(Optional)_: The key in the referent the values can be
|
||||
found at. Defaults to `values.yaml` when ommitted.
|
||||
|
||||
## Configure notifications
|
||||
|
||||
The default toolkit installation configures the helm-controller to
|
||||
|
|
|
|||
Loading…
Reference in a new issue