From 1a1ea6383004e13c400070ec50e5003da69963e5 Mon Sep 17 00:00:00 2001 From: Matthew Fisher Date: Wed, 4 Jul 2018 15:12:48 -0700 Subject: [PATCH] fix `helm template -x` pathing issues on Windows tiller's rendering engine converts os filepath separators into unix-style filepath separators, so we need to split template names with a forward slash. --- cmd/helm/template.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/helm/template.go b/cmd/helm/template.go index bcfb6a7e4..6c2b02cbd 100644 --- a/cmd/helm/template.go +++ b/cmd/helm/template.go @@ -246,7 +246,9 @@ func (t *templateCmd) run(cmd *cobra.Command, args []string) error { } 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 manifestPathSplit = manifestPathSplit[1:] toJoin := append([]string{t.chartPath}, manifestPathSplit...)