fix(test): fix expandybird environment variables

When adding additional env to an Cmd you must use append
pull/497/head
Adam Reese 9 years ago
parent a6af67ee22
commit c07213041e

@ -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 {

Loading…
Cancel
Save