-
Notifications
You must be signed in to change notification settings - Fork 717
Fix images output check bug #1999
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
Conversation
manugupt1
left a comment
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.
Thanks!
87172eb to
5e5e48d
Compare
pkg/testutil/testutil.go
Outdated
| // ImageRepo is a test helper that simply splits a full image name (i.e., not id/digest) | ||
| // by `:` and returns the 1st part. | ||
| func ImageRepo(s string) string { | ||
| return strings.Split(s, ":")[0] |
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.
Doesn't seem to work when the image name contains a registry port number, e.g., example.com:8080/example
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 think we can use imgutil.ParseRepoTag and return the first part.
Signed-off-by: Jin Dong <jindon@amazon.com>
AkihiroSuda
left a comment
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.
Thanks
Fix #1997
Signed-off-by: Jin Dong jindon@amazon.com