Skip to content
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

converter: fix image platform matcher #115

Merged
merged 3 commits into from
Mar 15, 2023

Conversation

imeoer
Copy link
Collaborator

@imeoer imeoer commented Mar 14, 2023

converter: fix platform matcher
We should only handle specific platform for pulling and
pushing by platforms.MatchComparer, otherwise acceld
will pull/push the layer data of all platforms for an image.

deps: remove harbor structure definition
To avoid importing a large number of redundant dependencies,
we ported harbor structure definitions.

action: bump nydus v2.1.5
To bring some fixups for nydus-image binary.

@imeoer imeoer force-pushed the fix-platform-matcher branch 2 times, most recently from 9071ac1 to b5fd46f Compare March 14, 2023 09:01
@imeoer imeoer changed the title [WIP] fix image platform matcher fix image platform matcher Mar 14, 2023
@imeoer imeoer changed the title fix image platform matcher converter: fix image platform matcher Mar 14, 2023
@imeoer imeoer changed the title converter: fix image platform matcher [WIP] converter: fix image platform matcher Mar 14, 2023
@imeoer imeoer force-pushed the fix-platform-matcher branch from b5fd46f to 6bd5c35 Compare March 14, 2023 10:56
@imeoer imeoer changed the title [WIP] converter: fix image platform matcher converter: fix image platform matcher Mar 14, 2023
if err != nil {
return nil, err
}
return nydusUtils.ExcludeNydusPlatformComparer{MatchComparer: platformMC}, nil
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems that no one is using nydusUtils.ExcludeNydusPlatformComparer anymore, are we good to remove it entirely?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

Copy link
Collaborator

@liubogithub liubogithub left a comment

Choose a reason for hiding this comment

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

Looks good.

We may remove the unnecessary stuff in a later commit.

imeoer added 3 commits March 15, 2023 01:49
We should only handle specific platform for pulling and
pushing by `platforms.MatchComparer`, otherwise acceld
will pull/push the layer data of all platforms for an image.

Signed-off-by: Yan Song <imeoer@linux.alibaba.com>
To avoid importing a large number of redundant dependencies,
we ported harbor structure definitions.

Signed-off-by: Yan Song <imeoer@linux.alibaba.com>
To bring some fixups for nydus-image binary.

Signed-off-by: Yan Song <imeoer@linux.alibaba.com>
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.

2 participants