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
dacc4013
Commit
dacc4013
authored
Aug 17, 2016
by
Trevor Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include values from both --set and --values when specified on install
parent
120256ec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
install.go
cmd/helm/install.go
+19
-4
No files found.
cmd/helm/install.go
View file @
dacc4013
...
@@ -147,13 +147,28 @@ func (i *installCmd) run() error {
...
@@ -147,13 +147,28 @@ func (i *installCmd) run() error {
}
}
func
(
i
*
installCmd
)
vals
()
([]
byte
,
error
)
{
func
(
i
*
installCmd
)
vals
()
([]
byte
,
error
)
{
var
buffer
bytes
.
Buffer
// User specified a values file via -f/--values
if
i
.
valuesFile
!=
""
{
bytes
,
err
:=
ioutil
.
ReadFile
(
i
.
valuesFile
)
if
err
!=
nil
{
return
[]
byte
{},
err
}
buffer
.
Write
(
bytes
)
}
// User specified value pairs via --set
// These override any values in the specified file
if
len
(
i
.
values
.
pairs
)
>
0
{
if
len
(
i
.
values
.
pairs
)
>
0
{
return
i
.
values
.
yaml
()
bytes
,
err
:=
i
.
values
.
yaml
()
if
err
!=
nil
{
return
[]
byte
{},
err
}
}
if
i
.
valuesFile
==
""
{
buffer
.
Write
(
bytes
)
return
[]
byte
{},
nil
}
}
return
ioutil
.
ReadFile
(
i
.
valuesFile
)
return
buffer
.
Bytes
(),
nil
}
}
func
(
i
*
installCmd
)
printRelease
(
rel
*
release
.
Release
)
{
func
(
i
*
installCmd
)
printRelease
(
rel
*
release
.
Release
)
{
...
...
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