Merge pull request #497 from adamreese/fix/expandybird-test

fix(test): fix expandybird environment variables
pull/500/head
Adam Reese 9 years ago
commit 66f6db730c

@ -22,6 +22,7 @@ import (
"fmt" "fmt"
"github.com/ghodss/yaml" "github.com/ghodss/yaml"
"log" "log"
"os"
"os/exec" "os/exec"
"github.com/kubernetes/helm/pkg/expansion" "github.com/kubernetes/helm/pkg/expansion"
@ -104,7 +105,8 @@ func (e *expander) ExpandChart(request *expansion.ServiceRequest) (*expansion.Se
} }
if chartFile.Schema != "" { 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 { for i, f := range chartMembers {

Loading…
Cancel
Save