1
0
mirror of synced 2026-02-06 19:05:55 +00:00

docs/helm: guide on values from resources

This commit is contained in:
Hidde Beydals
2020-07-31 12:56:09 +02:00
parent 2d417f200d
commit 427c60618f

View File

@@ -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