-
Notifications
You must be signed in to change notification settings - Fork 352
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: add possibility to customize containerd with additional files #2604
Conversation
Signed-off-by: Alessio Greggi <ale_grey_91@hotmail.it>
Signed-off-by: Alessio Greggi <ale_grey_91@hotmail.it>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First of all, thanks for the PR. We appreciate contributions a lot.
This looks good to me but before approving @jnummelin should check this because he was checking something related to imports last week. Although I don´t think this is incompatible.
Hi @jnummelin, did you have chance to check the PR? |
From k0s point of view this looks ok. But there's some weirdness, for example:
As a drop-in config snippet I have:
But the drop-in config is not really fully merged as expected:
I've tried to reach out to the containerd devs at Slack but to no avail. |
This is about how containerd merges the configuration and how it replaces |
I'm slightly hesitant to merge this untill there's some resolution on upstream on the config import handling. What I'm worried is that as we know the imports behave bit oddly in some cases (the main use case why we'd want them) and that might lead to lot of struggle on end users. |
Ok, I got your point. I took a glance to containerd's codebase. |
@alegrey91 No that's not the issue. The issue happens here: Essentially the problem is that If you have a file with the contents configuration:
And another file with:
In both I have a patch in progress but I'm struggling to make it work I haven't worked in it for a couple days because I was stuck and decided to leave it for a while, but I'm going to continue today: containerd/containerd@6e445f2 |
Great! Thanks for your explanation @juanluisvaladas |
The PR is marked as stale since no activity has been recorded in 30 days |
The PR is marked as stale since no activity has been recorded in 30 days |
@jnummelin I think since we're about to merge #2637 we can close this one. WDYT? |
I think it is obsolete with the #2637 merged, closing the current PR. Feel free to re-open in case if I am wrong. |
Description
Based on the feature request opened here: #2550 the PR add the possibility to customize containerd without editing the original
/etc/k0s/containerd.toml
file. This is possible due to containerd's feature that allows importing additional configurations using theimport
keyword.Fixes #2550
Type of change
How Has This Been Tested?
Checklist:
(since this is a containerd feature, I don't think tests are needed)