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
04a0659b
Commit
04a0659b
authored
Aug 16, 2017
by
Matt Butcher
Committed by
GitHub
Aug 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2809 from rocky-nupt/feature-read-from-STDIN
feat(helm):Support reading the values file from STDIN
parents
5bc7c619
084dff47
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
install.go
cmd/helm/install.go
+8
-1
No files found.
cmd/helm/install.go
View file @
04a0659b
...
...
@@ -310,7 +310,14 @@ func vals(valueFiles valueFiles, values []string) ([]byte, error) {
// User specified a values files via -f/--values
for
_
,
filePath
:=
range
valueFiles
{
currentMap
:=
map
[
string
]
interface
{}{}
bytes
,
err
:=
ioutil
.
ReadFile
(
filePath
)
var
bytes
[]
byte
var
err
error
if
strings
.
TrimSpace
(
filePath
)
==
"-"
{
bytes
,
err
=
ioutil
.
ReadAll
(
os
.
Stdin
)
}
else
{
bytes
,
err
=
ioutil
.
ReadFile
(
filePath
)
}
if
err
!=
nil
{
return
[]
byte
{},
err
}
...
...
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