-
Notifications
You must be signed in to change notification settings - Fork 407
[no-relnote] Refactor AddRuntime #1279
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
base: main
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 17298873827Details
💛 - Coveralls |
This change refactors the AddRuntime function into GetDefaultRuntimeOptions and AddRuntimeWithOptions. This allows for a clearer distinction between SOURCE and DESTINATION configs which should facilitate switching to drop-in files. Signed-off-by: Evan Lezar <elezar@nvidia.com>
aec10b2
to
5d37aba
Compare
"runtime_type": c.RuntimeType, | ||
"runtime_root": "", | ||
"runtime_engine": "", | ||
"privileged_without_host_devices": false, |
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.
I wonder if, on this fallback, we should add the SystemdCgroup = true|false
based on a function that looks if the system is running systemd.
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.
The intent of this change is not to add additional behaviour. It is a refactor.
} | ||
|
||
config = *c.Tree | ||
// Note: This is deprecated in containerd 1.4.0 and will be removed in 1.5.0 |
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.
Should we edit the note, now that 1.5.0
is released? and add a warning log.
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.
The intent of this change is not to add additional behaviour. It is a refactor.
This change refactors the AddRuntime function into GetDefaultRuntimeOptions and AddRuntimeWithOptions. This allows for a clearer distinction between SOURCE and DESTINATION configs which should facilitate switching to drop-in files.