Skip to content

Commit e8a5f82

Browse files
authored
new fix for new helm chart features (#496)
1 parent dffcb82 commit e8a5f82

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cmd/hauler/cli/store/add.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func AddChartCmd(ctx context.Context, o *flags.AddChartOpts, s *store.Layout, ch
205205
type isSubchartKey struct{}
206206

207207
// imageregex parses image references starting with "image:" and with optional spaces or optional quotes
208-
var imageRegex = regexp.MustCompile(`(?m)^\s*image:\s*['"]?([^\s'"#]+)`)
208+
var imageRegex = regexp.MustCompile(`(?m)^[ \t]*image:[ \t]*['"]?([^\s'"#]+)`)
209209

210210
// helmAnnotatedImage parses images references from helm chart annotations
211211
type helmAnnotatedImage struct {
@@ -512,8 +512,8 @@ func storeChart(ctx context.Context, s *store.Layout, cfg v1.Chart, opts *flags.
512512
l.Infof("%sadding dependent chart [%s:%s]", prefix, dep.Name, dep.Version)
513513

514514
depOpts := *opts
515-
depOpts.AddDependencies = false
516-
depOpts.AddImages = false
515+
depOpts.AddDependencies = true
516+
depOpts.AddImages = true
517517
subCtx := context.WithValue(ctx, isSubchartKey{}, true)
518518

519519
var depCfg v1.Chart

0 commit comments

Comments
 (0)