Skip to content

Commit

Permalink
Merge pull request #132 from arnaldo2792/nvidia-settings-api
Browse files Browse the repository at this point in the history
Use kubelet-device-plugin API
  • Loading branch information
arnaldo2792 authored Sep 11, 2024
2 parents edc6a35 + 686a1b5 commit 557a7e5
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 43 deletions.
2 changes: 1 addition & 1 deletion Twoliter.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
schema-version = 1
release-version = "2.4.1"
release-version = "2.5.0"

[vendor.bottlerocket]
registry = "public.ecr.aws/bottlerocket"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[required-extensions]
kubernetes = "v1"
kubelet-device-plugins = "v1"
std = { version = "v1", helpers = ["default"] }

+++
Expand All @@ -8,6 +8,6 @@ flags:
migStrategy: "none"
failOnInitError: true
plugin:
passDeviceSpecs: {{default true settings.kubernetes.device-plugins.nvidia.pass-device-specs}}
deviceListStrategy: {{default "volume-mounts" settings.kubernetes.device-plugins.nvidia.device-list-strategy}}
deviceIDStrategy: {{default "index" settings.kubernetes.device-plugins.nvidia.device-id-strategy}}
passDeviceSpecs: {{default true settings.kubelet-device-plugins.nvidia.pass-device-specs}}
deviceListStrategy: {{default "volume-mounts" settings.kubelet-device-plugins.nvidia.device-list-strategy}}
deviceIDStrategy: {{default "index" settings.kubelet-device-plugins.nvidia.device-id-strategy}}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[required-extensions]
kubernetes = "v1"
kubelet-device-plugins = "v1"
+++
[Service]
{{#if settings.kubernetes.device-plugins.nvidia}}
{{#if settings.kubelet-device-plugins.nvidia}}
ExecStart=
ExecStart=/usr/bin/nvidia-device-plugin --config-file=/etc/nvidia-k8s-device-plugin/settings.yaml
{{/if}}
76 changes: 45 additions & 31 deletions sources/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions sources/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,13 @@ base64 = "0.22"

[workspace.dependencies.bottlerocket-modeled-types]
git = "https://github.com/bottlerocket-os/bottlerocket-settings-sdk"
tag = "bottlerocket-settings-models-v0.4.0"
version = "0.4.0"
tag = "bottlerocket-settings-models-v0.5.0"
version = "0.5.0"

[workspace.dependencies.bottlerocket-settings-models]
git = "https://github.com/bottlerocket-os/bottlerocket-settings-sdk"
tag = "bottlerocket-settings-models-v0.4.0"
version = "0.4.0"
tag = "bottlerocket-settings-models-v0.5.0"
version = "0.5.0"

[workspace.dependencies.bottlerocket-settings-plugin]
git = "https://github.com/bottlerocket-os/bottlerocket-settings-sdk"
Expand All @@ -209,7 +209,7 @@ version = "0.1.0"

[workspace.dependencies.settings-extension-oci-defaults]
git = "https://github.com/bottlerocket-os/bottlerocket-settings-sdk"
tag = "bottlerocket-settings-models-v0.4.0"
tag = "bottlerocket-settings-models-v0.5.0"
version = "0.1.0"

[profile.release]
Expand Down

0 comments on commit 557a7e5

Please sign in to comment.