Skip to content

Commit e656c55

Browse files
committed
remove env expander
1 parent dd5b430 commit e656c55

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

utils/templater.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ func ExecuteTemplateContent(rootDir string, content []byte, variables map[string
3737
cwdStack.Push(rootDir)
3838
defer cwdStack.Pop()
3939

40-
contentWithEnvExpand := ExpandEnv(string(content))
40+
// dont expand env due to conflicting K8s syntax
41+
// Ref: https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/#using-environment-variables-inside-of-your-config
42+
// contentWithEnvExpand := ExpandEnv(string(content))
4143
tmpl, err := template.
4244
New("template").
4345
Funcs(sprig.TxtFuncMap()).
@@ -51,7 +53,7 @@ func ExecuteTemplateContent(rootDir string, content []byte, variables map[string
5153
"asGenericMap": asGenericMap,
5254
"asMapString": asMapString,
5355
}).
54-
Parse(contentWithEnvExpand)
56+
Parse(string(content))
5557
if err != nil {
5658
return nil, stacktrace.Propagate(err, "cannot parse template")
5759
}

0 commit comments

Comments
 (0)