Skip to content

Commit

Permalink
Merge pull request rancher#119 from lucasmlp/master
Browse files Browse the repository at this point in the history
Skipping namespace and tags check if image repository is empty
  • Loading branch information
rohitsakala authored Oct 17, 2023
2 parents 0c288e8 + 6b44cbd commit 3dd99c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/images/checkImages.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func CheckImages() error {
// Loop through all images and tags to check if they exist
for image := range imageTagMap {
if len(image) == 0 {
logrus.Infof("found blank image, skipping")
logrus.Infof("found blank image, skipping tag check")
continue
}

Expand Down Expand Up @@ -82,6 +82,11 @@ func checkPattern(imageTagMap map[string][]string) []string {
nonMatchingImages := make([]string, 0)

for image := range imageTagMap {
if len(image) == 0 {
logrus.Infof("found blank image, skipping image namespace check")
continue
}

if !strings.HasPrefix(image, "rancher/") {
nonMatchingImages = append(nonMatchingImages, image)
}
Expand Down
Binary file removed scripts_debug
Binary file not shown.

0 comments on commit 3dd99c1

Please sign in to comment.