mirror of
https://github.com/helmfile/helmfile.git
synced 2026-09-30 06:02:58 +02:00
fix env value lost in environment values (#605)
* fix env value lost in environment values Signed-off-by: yxxhero <aiopsclub@163.com> * add more test Signed-off-by: yxxhero <aiopsclub@163.com> Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
test/e2e/template/helmfile/testdata/snapshot/environments_releases_within_same_yaml_part/config.yaml
Vendored
-3
@@ -1,6 +1,3 @@
|
||||
localChartRepoServer:
|
||||
enabled: true
|
||||
port: 18083
|
||||
chartifyTempDir: envs_releases_within_same_yaml_part
|
||||
helmfileArgs:
|
||||
- --environment
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
chartifyTempDir: environments_values_gotmpl_with_environment_name
|
||||
helmfileArgs:
|
||||
- --environment
|
||||
- test
|
||||
- template
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
environments:
|
||||
test:
|
||||
values:
|
||||
- test.yaml.gotmpl
|
||||
---
|
||||
releases:
|
||||
- name: raw
|
||||
chart: ../../charts/raw-0.0.1
|
||||
values:
|
||||
- templates:
|
||||
- |
|
||||
envName: {{ .Values.envName }}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
Building dependency release=raw, chart=../../charts/raw-0.0.1
|
||||
Templating release=raw, chart=../../charts/raw-0.0.1
|
||||
---
|
||||
# Source: raw/templates/resources.yaml
|
||||
envName: test
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
envName: {{ .Environment.Name }}
|
||||
Reference in New Issue
Block a user