mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-18 23:59:16 +02:00
Feature/support env hcl and interpolations (#1423)
* support HCL language for env variables Signed-off-by: xtphate <65117176+XT-Phate@users.noreply.github.com>
This commit is contained in:
Vendored
+42
@@ -0,0 +1,42 @@
|
||||
locals {
|
||||
localInValues7File = "localInValues7"
|
||||
}
|
||||
|
||||
values {
|
||||
a = "a"
|
||||
b = "b"
|
||||
c = "${hv.a}${hv.b}"
|
||||
|
||||
map = {
|
||||
"a" = "${hv.a}"
|
||||
}
|
||||
|
||||
list = [
|
||||
hv.b
|
||||
]
|
||||
|
||||
nestedmap = {
|
||||
submap = {
|
||||
subsubmap = {
|
||||
hello = hv.c
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ternary = true ? true : false
|
||||
|
||||
fromMap = "${hv.map.a}${hv.nestedmap.submap.subsubmap.hello}"
|
||||
|
||||
expressionInText = "%{if hv.ternary }yes%{else}no%{endif}"
|
||||
insideFor = "%{for i in hv.list }${i}%{endfor}"
|
||||
|
||||
multi_block = hv.block
|
||||
|
||||
crossfile = hv.crossfile_var
|
||||
|
||||
localRef = local.localInValues7File
|
||||
}
|
||||
|
||||
values {
|
||||
block = "block"
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
values {
|
||||
crossfile_var = "crossfile var"
|
||||
}
|
||||
Reference in New Issue
Block a user