Commit c0721304 authored by Adam Reese's avatar Adam Reese
Browse files

fix(test): fix expandybird environment variables

When adding additional env to an Cmd you must use append
parent a6af67ee
No related merge requests found
Showing with 3 additions and 1 deletion
+3 -1
......@@ -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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment