Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
ca5f7de9
Commit
ca5f7de9
authored
Jan 27, 2016
by
vaikas-google
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #191 from adamreese/preserve-env-vars
Preserve environment variables executing expansion
parents
b2ebb24c
1ce72d0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
expander.go
expandybird/expander/expander.go
+2
-4
No files found.
expandybird/expander/expander.go
View file @
ca5f7de9
...
...
@@ -23,6 +23,7 @@ import (
"io"
"io/ioutil"
"log"
"os"
"os/exec"
"path"
"path/filepath"
...
...
@@ -281,10 +282,7 @@ func (e *expander) ExpandTemplate(template *common.Template) (string, error) {
Args
:
[]
string
{
e
.
ExpansionBinary
,
template
.
Content
},
// TODO(vagababov): figure out whether do we even need "PROJECT" and
// "DEPLOYMENT_NAME" variables here.
Env
:
[]
string
{
"PROJECT="
+
template
.
Name
,
"DEPLOYMENT_NAME="
+
template
.
Name
,
},
Env
:
append
(
os
.
Environ
(),
"PROJECT="
+
template
.
Name
,
"DEPLOYMENT_NAME="
+
template
.
Name
),
Stdout
:
&
stdout
,
Stderr
:
&
stderr
,
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment