Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
1105 Внедрение механизмов обеспечения безопасности цепочки поставки программных проектов
Legacy
scanned-projects
helm
Commits
c0721304
Commit
c0721304
authored
9 years ago
by
Adam Reese
Browse files
Options
Download
Patches
Plain Diff
fix(test): fix expandybird environment variables
When adding additional env to an Cmd you must use append
parent
a6af67ee
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmd/expandybird/expander/expander.go
+3
-1
cmd/expandybird/expander/expander.go
with
3 additions
and
1 deletion
+3
-1
cmd/expandybird/expander/expander.go
+
3
−
1
View file @
c0721304
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets