-
Notifications
You must be signed in to change notification settings - Fork 15
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: drop nvidia-device-plugin feature #60
feat: drop nvidia-device-plugin feature #60
Conversation
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 with some nits. Quick question - I noticed in reading your testing in the description, why are we setting two ExecStart=
, the first of which is empty?
@@ -0,0 +1,75 @@ | |||
//! Settings related to Amazon ECS |
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.
nit: this doc comment is not accurate
nvidia: NvidiaDevicePluginSettings, | ||
} | ||
|
||
// |
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.
nit: should this just be a blank line?
The first line is empty to reset the |
use std::convert::Infallible; | ||
|
||
#[model(impl_default = true)] | ||
pub struct KubeletDevicePluginV1 { |
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'd prefer to expose this as settings.kubelet-device-plugins
for consistency with our other plural settings clusters. So the type name should also be plural.
pub struct KubeletDevicePluginV1 { | |
pub struct KubeletDevicePluginsV1 { |
6973001
to
ab4d481
Compare
Forced push includes:
|
@@ -0,0 +1,18 @@ | |||
use bottlerocket_settings_sdk::{BottlerocketSetting, NullMigratorExtensionBuilder}; | |||
use settings_extension_kubelet_device_plugin::KubeletDevicePluginsV1; |
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.
use settings_extension_kubelet_device_plugin::KubeletDevicePluginsV1; | |
use settings_extension_kubelet_device_plugins::KubeletDevicePluginsV1; |
Use a setings extension instead of a cargo feature for the kubelet device plugins API Signed-off-by: Arnaldo Garcia Rincon <[email protected]>
ab4d481
to
25b5ea5
Compare
(forced push renames |
I confirmed in a local build that
|
Issue #, if available:
N / A
Description of changes:
Use a setings extension instead of a cargo feature for the kubelet device plugins API. See #57 (comment) for details.
Testing:
As part of bottlerocket-os/bottlerocket-core-kit#132 and bottlerocket-os/bottlerocket#4182
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.