pkg/components/util/helm: use location rather than hardcoded path for loading
mistakenly hardcoded the path
used for walking assets, where actually the location argument should be
used.
This commit fixes that.
@@ -27,7 +27,7 @@ func LoadChartFromAssets(location string) (*chart.Chart, error) {
// Rendered files could contain secret data, only allow the
// current user but not others
walk := walkers.CopyingWalker(tmpDir, 0700)
- if err := assets.Assets.WalkFiles("/lokomotive-kubernetes", walk); err != nil {
+ if err := assets.Assets.WalkFiles(location, walk); err != nil {
return nil, errors.Wrap(err, "walking assets")
}
