HelmChartInflationGenerator: inherit environment variables to helm command

This commit is contained in:
Jan-Otto Kröpke
2021-03-09 18:29:32 +01:00
committed by Jan-Otto Kröpke
parent 9e8e7a7fe9
commit a5e6295923
3 changed files with 4 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ func (p *HelmChartInflationGeneratorPlugin) Config(h *resmap.PluginHelpers, conf
cmd := exec.Command(p.HelmBin, args...)
cmd.Stdout = stdout
cmd.Stderr = stderr
cmd.Env = append(cmd.Env,
cmd.Env = append(os.Environ(),
fmt.Sprintf("HELM_CONFIG_HOME=%s", p.HelmHome),
fmt.Sprintf("HELM_CACHE_HOME=%s/.cache", p.HelmHome),
fmt.Sprintf("HELM_DATA_HOME=%s/.data", p.HelmHome),