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
3a6fbee3
Unverified
Commit
3a6fbee3
authored
Jul 31, 2018
by
Matthew Fisher
Committed by
GitHub
Jul 31, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4305 from bacongobbler/fix-4304
fix `helm template -x` pathing issues on Windows
parents
7cad5909
1a1ea638
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
template.go
cmd/helm/template.go
+3
-1
No files found.
cmd/helm/template.go
View file @
3a6fbee3
...
@@ -246,7 +246,9 @@ func (t *templateCmd) run(cmd *cobra.Command, args []string) error {
...
@@ -246,7 +246,9 @@ func (t *templateCmd) run(cmd *cobra.Command, args []string) error {
}
}
for
_
,
manifest
:=
range
listManifests
{
for
_
,
manifest
:=
range
listManifests
{
manifestPathSplit
:=
strings
.
Split
(
manifest
.
Name
,
string
(
filepath
.
Separator
))
// manifest.Name is rendered using linux-style filepath separators on Windows as
// well as macOS/linux.
manifestPathSplit
:=
strings
.
Split
(
manifest
.
Name
,
"/"
)
// remove the chart name from the path
// remove the chart name from the path
manifestPathSplit
=
manifestPathSplit
[
1
:
]
manifestPathSplit
=
manifestPathSplit
[
1
:
]
toJoin
:=
append
([]
string
{
t
.
chartPath
},
manifestPathSplit
...
)
toJoin
:=
append
([]
string
{
t
.
chartPath
},
manifestPathSplit
...
)
...
...
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