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

rework containerd config merging #1780

Merged
merged 3 commits into from
May 10, 2024
Merged

Conversation

ndbaker1
Copy link
Member

@ndbaker1 ndbaker1 commented May 2, 2024

Issue #, if available:

Description of changes:

It was recently realized that containerd's native import merging strategy is not one that behaves as most users would like. This is because it replaces the entire body under keyed maps such as Plugins. This conflicts with the use case to override singular parameters under existing sections. (see xref).

This PR implements the merging in an unstructured way so that users can continue providing whatever inline containerd config fields they would like overridden.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Testing Done

See this guide for recommended testing for PRs. Some tests may not apply. Completing tests and providing additional validation steps are not required, but it is recommended and may reduce review time and time to merge.

@ndbaker1
Copy link
Member Author

ndbaker1 commented May 2, 2024

/ci
+workflow:os_distros al2023

Copy link
Contributor

github-actions bot commented May 2, 2024

@ndbaker1 roger that! I've dispatched a workflow. 👍

Copy link
Contributor

github-actions bot commented May 2, 2024

@ndbaker1 the workflow that you requested has completed. 🎉

AMI variantBuildTest
1.23 / al2023success ✅success ✅
1.24 / al2023success ✅success ✅
1.25 / al2023success ✅success ✅
1.26 / al2023success ✅success ✅
1.27 / al2023success ✅success ✅
1.28 / al2023success ✅success ✅
1.29 / al2023success ✅success ✅
1.30 / al2023failure ❌skipped ⏭️

nodeadm/internal/containerd/config.go Outdated Show resolved Hide resolved
nodeadm/internal/containerd/config.go Outdated Show resolved Hide resolved
nodeadm/internal/containerd/config.go Show resolved Hide resolved
@ndbaker1
Copy link
Member Author

ndbaker1 commented May 3, 2024

/ci
+workflow:os_distros al2023

Copy link
Contributor

github-actions bot commented May 3, 2024

@ndbaker1 roger that! I've dispatched a workflow. 👍

Copy link
Contributor

github-actions bot commented May 3, 2024

@ndbaker1 the workflow that you requested has completed. 🎉

AMI variantBuildTest
1.23 / al2023success ✅success ✅
1.24 / al2023success ✅success ✅
1.25 / al2023success ✅success ✅
1.26 / al2023success ✅success ✅
1.27 / al2023success ✅success ✅
1.28 / al2023success ✅success ✅
1.29 / al2023success ✅success ✅
1.30 / al2023failure ❌skipped ⏭️

Copy link
Member

@cartermckinnon cartermckinnon left a comment

Choose a reason for hiding this comment

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

LGTM

@ndbaker1 ndbaker1 merged commit 9535535 into awslabs:main May 10, 2024
9 of 10 checks passed
@ndbaker1 ndbaker1 deleted the containerd-config branch May 10, 2024 17:55
atmosx pushed a commit to gathertown/amazon-eks-ami that referenced this pull request Jun 18, 2024
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