Readd valuesFrom docs
@@ -76,6 +76,18 @@ helm:
valuesFiles:
- values1.yaml
- values2.yaml
+ # Allow to use values files from configmaps or secrets
+ # NOTE: this feature is slated to be available in Fleet v0.3.6
+ valuesFrom:
+ - configMapKeyRef:
+ name: configmap-values
+ # default to namespace of bundle
+ namespace: default
+ key: values.yaml
+ secretKeyRef:
+ name: secret-values
+ namespace: default
+ key: values.yaml
# Override immutable resources. This could be dangerous.
force: false
@@ -172,6 +184,26 @@ targetCustomizations:
After secret is created, specify the secret to `gitRepo.spec.helmSecretName`. Make sure secret is created under the same namespace with gitrepo.
+### Using ValuesFrom
+
+The examples below include filler `values` data for a generic Helm chart.
+These examples showcase the style and format for using `valuesFrom`.
+
+Recommended `ConfigMap` contents for the `data` field:
+
+```yaml
+values.yaml: |-
+ replication: true
+ replicas: 2
+ serviceType: NodePort
+```
+
+Recommended `Secret` contents for the `data` field (to be converted into bytes):
+
+```yaml
+replication: true\nreplicas: 2\nserviceType: NodePort
+```
+
## Per Cluster Customization
The `GitRepo` defines which clusters a git repository should be deployed to and the `fleet.yaml` in the repository
