From 905b3e4932a08c3cf814b03ffc4afeede10862ba Mon Sep 17 00:00:00 2001 From: Eric Klatzer Date: Mon, 22 Jun 2026 17:10:20 +0200 Subject: [PATCH] fix: image detection regex to allow hyphen in image property (#604) Signed-off-by: Eric Klatzer Co-authored-by: Zack Brady --- cmd/hauler/cli/store/add.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/hauler/cli/store/add.go b/cmd/hauler/cli/store/add.go index ae532d4..7007083 100644 --- a/cmd/hauler/cli/store/add.go +++ b/cmd/hauler/cli/store/add.go @@ -300,7 +300,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)^[ \t]*image:[ \t]*['"]?([^\s'"#]+)`) +var imageRegex = regexp.MustCompile(`(?m)^[ \t-]*image:[ \t]*['"]?([^\s'"#]+)`) // helmAnnotatedImage parses images references from helm chart annotations type helmAnnotatedImage struct {