From 6ccb59fe9a2818ee25429f9d5d2048b28f44b620 Mon Sep 17 00:00:00 2001 From: Matt Rickard Date: Thu, 28 Jun 2018 14:49:50 -0700 Subject: [PATCH] helm: add deploy dependency paths --- pkg/skaffold/deploy/helm.go | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkg/skaffold/deploy/helm.go b/pkg/skaffold/deploy/helm.go index 96f896fd700..ff95dec7e55 100644 --- a/pkg/skaffold/deploy/helm.go +++ b/pkg/skaffold/deploy/helm.go @@ -74,9 +74,18 @@ func (h *HelmDeployer) Deploy(ctx context.Context, out io.Writer, builds []build return deployResults, nil } -// Not implemented func (h *HelmDeployer) Dependencies() ([]string, error) { - return nil, nil + var deps []string + for _, release := range h.Releases { + deps = append(deps, release.ValuesFilePath) + filepath.Walk(release.ChartPath, func(path string, info os.FileInfo, err error) error { + if !info.IsDir() { + deps = append(deps, path) + } + return nil + }) + } + return deps, nil } // Cleanup deletes what was deployed by calling Deploy.