Skip to content

Commit

Permalink
Merge pull request #5231 from nojnhuh/ctrd-device-plugin
Browse files Browse the repository at this point in the history
Revert "simplify DRA config for containerd"
  • Loading branch information
jackfrancis authored Nov 1, 2024
2 parents 3d2c868 + a3bfa70 commit 90d9b4b
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 36 deletions.
27 changes: 15 additions & 12 deletions templates/test/ci/cluster-template-prow-ci-version-dra.yaml

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

13 changes: 7 additions & 6 deletions templates/test/ci/patches/dra-kubeadmconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
path: /spec/files/-
value:
content: |
version = 2
[plugins]
[plugins."io.containerd.grpc.v1.cri"]
enable_cdi = true
#!/bin/bash
echo "enabling containerd CDI plugin"
sed -i '/\[plugins."io.containerd.grpc.v1.cri"\]/a\ enable_cdi = true' /etc/containerd/config.toml
systemctl restart containerd
owner: root:root
path: /etc/containerd/conf.d/device-plugin.toml
permissions: "0644"
path: /tmp/containerd-config.sh
permissions: "0744"
- op: add
path: /spec/preKubeadmCommands/0
value: bash -c /tmp/containerd-config.sh
Expand Down
16 changes: 10 additions & 6 deletions templates/test/ci/patches/dra-kubeadmcontrolplane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
path: /spec/kubeadmConfigSpec/files/-
value:
content: |
version = 2
[plugins]
[plugins."io.containerd.grpc.v1.cri"]
enable_cdi = true
#!/bin/bash
echo "enabling containerd CDI plugin"
sed -i '/\[plugins."io.containerd.grpc.v1.cri"\]/a\ enable_cdi = true' /etc/containerd/config.toml
systemctl restart containerd
owner: root:root
path: /etc/containerd/conf.d/device-plugin.toml
permissions: "0644"
path: /tmp/containerd-config.sh
permissions: "0744"
- op: add
path: /spec/kubeadmConfigSpec/preKubeadmCommands/0
value: bash -c /tmp/containerd-config.sh
- op: add
path: /spec/kubeadmConfigSpec/clusterConfiguration/apiServer/extraArgs/feature-gates
value: ${K8S_FEATURE_GATES:-"DynamicResourceAllocation=true"}
Expand Down
27 changes: 15 additions & 12 deletions templates/test/dev/cluster-template-custom-builds-dra.yaml

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

0 comments on commit 90d9b4b

Please sign in to comment.