Skip to content

Commit

Permalink
Skip images without any tag
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Nov 18, 2024
1 parent 297fda0 commit 4eac777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/lib/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func MapImages(rootDir string) (map[string]string, error) {
func collectImages(obj map[string]any, images map[string]string, srcGK string) {
for k, v := range obj {
if k == "image" {
if s, ok := v.(string); ok && s != "" {
if s, ok := v.(string); ok && (s != "" && strings.ContainsRune(s, ':')) {
images[s] = srcGK
}
} else if m, ok := v.(map[string]any); ok {
Expand Down

0 comments on commit 4eac777

Please sign in to comment.