Skip to content

Conversation

@djdongjin
Copy link
Member

Fix #1997

Signed-off-by: Jin Dong jindon@amazon.com

@djdongjin djdongjin marked this pull request as ready for review February 11, 2023 20:40
Copy link
Contributor

@manugupt1 manugupt1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@AkihiroSuda AkihiroSuda added this to the v1.2.1 milestone Feb 12, 2023
@djdongjin djdongjin force-pushed the fix-1997 branch 2 times, most recently from 87172eb to 5e5e48d Compare February 14, 2023 22:18
// 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]
Copy link
Member

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

Copy link
Contributor

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>
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda AkihiroSuda merged commit 1514b96 into containerd:main Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Testutil images cannot be directly used to validate nerdctl images output

3 participants