mirror of
https://github.com/hauler-dev/hauler.git
synced 2026-08-19 04:16:27 +00:00
fix: image detection regex to allow hyphen in image property (#604)
Signed-off-by: Eric Klatzer <eric@klatzer.at> Co-authored-by: Zack Brady <zackbrady123@gmail.com>
This commit is contained in:
co-authored by
Zack Brady
parent
f68969de5c
commit
905b3e4932
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user