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

feat: support image cache copying #9845

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

smira
Copy link
Member

@smira smira commented Nov 29, 2024

Fixes #9615

The are no integration tests, this is to be addressed later. I did manual tests so far.

Also includes first draft of the documentation.

@smira smira added this to the v1.9 milestone Nov 29, 2024
}

dstStat, err := os.Stat(dst)
if err == nil && srcStat.Size() == dstStat.Size() {
Copy link
Member

Choose a reason for hiding this comment

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

two files could haave the same size, but hashing is expensive

Copy link
Member Author

Choose a reason for hiding this comment

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

that would be outside of our control I guess, we just try to skip copying what is already there

Copy link
Member

@frezbo frezbo left a comment

Choose a reason for hiding this comment

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

🆒

Copy link
Member

@DmitriyMV DmitriyMV left a comment

Choose a reason for hiding this comment

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

🆒 but cri.(*ImageCacheConfigController).copyImageCache has two too many states and it's not exactly clear how it works. I think it could be simplified, but I don't have any really good ideas right now.

Fixes siderolabs#9615

The are no integration tests, this is to be addressed later.
I did manual tests so far.

Also includes first draft of the documentation.

Signed-off-by: Andrey Smirnov <[email protected]>
@smira
Copy link
Member Author

smira commented Dec 2, 2024

/m

@talos-bot talos-bot merged commit 770be16 into siderolabs:main Dec 2, 2024
50 checks passed
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.

copying image cache
4 participants