-
Notifications
You must be signed in to change notification settings - Fork 416
Add drop-in file support for containerd and crio #1280
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
Conversation
303181d
to
b332388
Compare
d731b7c
to
5d803d2
Compare
5d803d2
to
dd480aa
Compare
Signed-off-by: Evan Lezar <[email protected]>
dd480aa
to
488c9fe
Compare
/retitle "Implement Drop-In Lifecycle Support for Containerd and Crio" |
0f3597d
to
62cffba
Compare
This change adds drop-in file support for containerd and crio. Instead of writing the entire in-memory config to the specified config path, we write only the modified settings (nvidia runtimes, default runtime, enable_cdi) settings to a drop-in file and update the top-level configs to import this if required. Signed-off-by: Evan Lezar <[email protected]> Co-authored-by: Carlos Eduardo Arango Gutierrez <[email protected]>
62cffba
to
abcba21
Compare
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.
LGTM
func (c *Config) AddRuntime(name string, path string, setAsDefault bool) error { | ||
options := c.Source.GetDefaultRuntimeOptions() | ||
return c.Destination.AddRuntimeWithOptions(name, path, setAsDefault, options) | ||
} |
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 believe this means the changes I made in #1256 will no longer take affect. If default_runtime_name=nvidia
is set in the top-level config, and setAsDefault=false
, we don't actually unset nvidia
as the default runtime.
This change adds drop-in file support for containerd and crio. Instead of writing the entire in-memory config to the specified config path, we write only the modified settings (nvidia runtimes, default runtime, enable_cdi) settings to a drop-in file and update the top-level configs to import this if required.
See also #1272
For GPU Operator integration see NVIDIA/gpu-operator#1710