mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-19 00:48:54 +02:00
feat: inject cli state values (--state-values-set) into environment templating context (#1917)
* feat: inject cli state values (--state-values-set) into environment templating context Signed-off-by: Vincent Chenal <vincent.chenal@protonmail.com> * test: added envvals_loader unit test for environment values Signed-off-by: Vincent Chenal <vincent.chenal@protonmail.com> * test: added 'state values set cli args in environments' integration test Signed-off-by: Vincent Chenal <vincent.chenal@protonmail.com> * fix: merge environments before loadValuesEntries Signed-off-by: Vincent Chenal <vincent.chenal@protonmail.com> * fix: 'state values set cli args in environments' integration test Signed-off-by: Vincent Chenal <vincent.chenal@protonmail.com> --------- Signed-off-by: Vincent Chenal <vincent.chenal@protonmail.com>
This commit is contained in:
+2
@@ -0,0 +1,2 @@
|
||||
---
|
||||
foo: {{ .Values.foo }}
|
||||
+1
@@ -0,0 +1 @@
|
||||
--state-values-set foo=bar
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
environments:
|
||||
default:
|
||||
values:
|
||||
- environments.yaml.gotmpl
|
||||
---
|
||||
releases:
|
||||
- name: state-value-set-args-environments
|
||||
chart: ../../../charts/raw
|
||||
values:
|
||||
- templates:
|
||||
- |
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: test
|
||||
data:
|
||||
foo: {{ .Values.foo }}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
---
|
||||
# Source: raw/templates/resources.yaml
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: test
|
||||
data:
|
||||
foo: bar
|
||||
Reference in New Issue
Block a user