in internal/generators/helm.go [129:147]
func (hg *HelmGenerator) getChartPath(c *core.Component) (string, error) {
if c.Method == "helm" || c.Method == "git" {
absHelmPath, err := filepath.Abs(hg.makeHelmRepoPath(c))
if err != nil {
return "", err
}
switch c.Method {
case "git":
// method: git downloads the entire repo into _helm_chart and the dir containing Chart.yaml specified by Path
return path.Join(absHelmPath, c.Path), nil
case "helm":
// method: helm only downloads target chart into _helm_chart
return absHelmPath, nil
}
}
// Default to `method: local` and use the Path provided as location of the chart
return filepath.Abs(path.Join(c.PhysicalPath, c.Path))
}