-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have --image-refs
list all images for multi-arch builds.
#761
Conversation
This change alters the behavior of `--image-refs` to also include all of the image references when a multi-architecture build is being performed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I bet this will blow up Tekton's built image result, which IIRC was already close enough to the limit to make them scale stuff back. 😭
return nil | ||
}); err != nil { | ||
return nil, err | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this to fallthrough
to also log the index? Can you add a tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can't fallthrough
in non-expression switch statements, but the walk touches everything.
Looking at tests, if my next meeting is cancelled 🤞
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... or until then :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, I tweaked the tests to use images/indices and this has coverage now.
Codecov Report
@@ Coverage Diff @@
## main #761 +/- ##
==========================================
+ Coverage 51.24% 51.30% +0.05%
==========================================
Files 44 44
Lines 3323 3339 +16
==========================================
+ Hits 1703 1713 +10
- Misses 1407 1412 +5
- Partials 213 214 +1
Continue to review full report at Codecov.
|
t.Errorf("buf.String() = %s, wanted %s", got, want) | ||
refs := strings.Split(strings.TrimSpace(buf.String()), "\n") | ||
|
||
for _, s := range refs { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is len(refs)
what we expect?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a check
This change alters the behavior of
--image-refs
to also include all of the image references when a multi-architecture build is being performed.