Merge pull request #3713 from jkroepke/patch-1

HelmChartInflationGenerator: inherit environment variables to helm command
This commit is contained in:
Donny Xia
2021-03-12 10:10:54 -08:00
committed by GitHub
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),