From c07213041ed047a6debbd3db170b260f3a0bf796 Mon Sep 17 00:00:00 2001 From: Adam Reese Date: Tue, 29 Mar 2016 17:10:41 -0700 Subject: [PATCH] fix(test): fix expandybird environment variables When adding additional env to an Cmd you must use append --- cmd/expandybird/expander/expander.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/expandybird/expander/expander.go b/cmd/expandybird/expander/expander.go index 1acceea68..e0d535319 100644 --- a/cmd/expandybird/expander/expander.go +++ b/cmd/expandybird/expander/expander.go @@ -22,6 +22,7 @@ import ( "fmt" "github.com/ghodss/yaml" "log" + "os" "os/exec" "github.com/kubernetes/helm/pkg/expansion" @@ -104,7 +105,8 @@ func (e *expander) ExpandChart(request *expansion.ServiceRequest) (*expansion.Se } if chartFile.Schema != "" { - cmd.Env = []string{"VALIDATE_SCHEMA=1"} + // appending to exsiting Env is required + cmd.Env = append(os.Environ(), "VALIDATE_SCHEMA=1") } for i, f := range chartMembers {