From e8a5f82b7d5178a5bc3c4ffcbeab52a3928232fe Mon Sep 17 00:00:00 2001 From: Zack Brady Date: Thu, 22 Jan 2026 10:30:59 -0500 Subject: [PATCH] new fix for new helm chart features (#496) --- cmd/hauler/cli/store/add.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/hauler/cli/store/add.go b/cmd/hauler/cli/store/add.go index 49edde8..cef1994 100644 --- a/cmd/hauler/cli/store/add.go +++ b/cmd/hauler/cli/store/add.go @@ -205,7 +205,7 @@ func AddChartCmd(ctx context.Context, o *flags.AddChartOpts, s *store.Layout, ch type isSubchartKey struct{} // imageregex parses image references starting with "image:" and with optional spaces or optional quotes -var imageRegex = regexp.MustCompile(`(?m)^\s*image:\s*['"]?([^\s'"#]+)`) +var imageRegex = regexp.MustCompile(`(?m)^[ \t]*image:[ \t]*['"]?([^\s'"#]+)`) // helmAnnotatedImage parses images references from helm chart annotations type helmAnnotatedImage struct { @@ -512,8 +512,8 @@ func storeChart(ctx context.Context, s *store.Layout, cfg v1.Chart, opts *flags. l.Infof("%sadding dependent chart [%s:%s]", prefix, dep.Name, dep.Version) depOpts := *opts - depOpts.AddDependencies = false - depOpts.AddImages = false + depOpts.AddDependencies = true + depOpts.AddImages = true subCtx := context.WithValue(ctx, isSubchartKey{}, true) var depCfg v1.Chart