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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
install.go
cmd/helm/install.go
+20
-5
No files found.
cmd/helm/install.go
View file @
dacc4013
...
...
@@ -147,13 +147,28 @@ func (i *installCmd) run() error {
}
func
(
i
*
installCmd
)
vals
()
([]
byte
,
error
)
{
if
len
(
i
.
values
.
pairs
)
>
0
{
return
i
.
values
.
yaml
()
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
)
}
if
i
.
valuesFile
==
""
{
return
[]
byte
{},
nil
// User specified value pairs via --set
// These override any values in the specified file
if
len
(
i
.
values
.
pairs
)
>
0
{
bytes
,
err
:=
i
.
values
.
yaml
()
if
err
!=
nil
{
return
[]
byte
{},
err
}
buffer
.
Write
(
bytes
)
}
return
ioutil
.
ReadFile
(
i
.
valuesFile
)
return
buffer
.
Bytes
(),
nil
}
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