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

Use the the latest version of containerd 1.6.x instead of 1.7.x #1209

Closed
wants to merge 1 commit into from

Conversation

natalieparellano
Copy link
Member

Summary

We have tried to be on the latest version of containerd as it has been a source of CVEs in the past. However the 1.7.x line is incompatible with older versions of k8s. This change would allow library consumers to upgrade the lifecycle without having to simultaneously upgrade their clusters.

Release notes

Uses the highest version of github.com/containerd/containerd v1.6.x to facilitate importing the lifecycle as a library in k8s

@natalieparellano natalieparellano requested a review from a team as a code owner October 3, 2023 16:21
// Ensure we only pull in the latest version of containerd
replace github.com/containerd/containerd => github.com/containerd/containerd v1.7.6
// Ensure we only pull in the latest version of containerd 1.6.x
replace github.com/containerd/containerd => github.com/containerd/containerd v1.6.24
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove this in favor of github.com/containerd/containerd v1.6.24 in the main require block? Or what does that end up downgrading?

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried that but go mod tidy always bumps it back up to v1.7.6

Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if this fixes the issue then - I don't think go tool respects the replace directives when importing as a library.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ohhh... you are right 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like kaniko is probably one of the main packages forcing our hand here to a later containerd version. Oh well I suppose.

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