Skip to content

Commit cbd65b2

Browse files
committed
Add custom-builds-load-dra template
1 parent 1a9b38b commit cbd65b2

File tree

9 files changed

+2212
-13
lines changed

9 files changed

+2212
-13
lines changed

templates/test/ci/cluster-template-prow-ci-version-dra.yaml

Lines changed: 357 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
- op: add
2+
path: /spec/template/spec/files/-
3+
value:
4+
content: |
5+
#!/bin/bash
6+
7+
echo "enabling containerd CDI plugin"
8+
sed -i '/\[plugins."io.containerd.grpc.v1.cri"\]/a\ enable_cdi = true' /etc/containerd/config.toml
9+
systemctl restart containerd
10+
owner: root:root
11+
path: /tmp/containerd-config.sh
12+
permissions: "0744"
13+
- op: add
14+
path: /spec/template/spec/preKubeadmCommands/0
15+
value: bash -c /tmp/containerd-config.sh
16+
- op: add
17+
path: /spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs/feature-gates
18+
value: ${NODE_FEATURE_GATES:-"DynamicResourceAllocation=true"}

templates/test/ci/patches/dra-kubeadmcontrolplane.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323
path: /spec/kubeadmConfigSpec/clusterConfiguration/apiServer/extraArgs/runtime-config
2424
value: resource.k8s.io/v1beta1=true
2525
- op: add
26-
path: /spec/kubeadmConfigSpec/clusterConfiguration/scheduler
27-
value:
28-
extraArgs:
29-
feature-gates: DynamicResourceAllocation=true
26+
path: /spec/kubeadmConfigSpec/clusterConfiguration/scheduler/extraArgs/feature-gates
27+
value: DynamicResourceAllocation=true
3028
- op: add
3129
path: /spec/kubeadmConfigSpec/initConfiguration/nodeRegistration/kubeletExtraArgs/feature-gates
3230
value: DynamicResourceAllocation=true

templates/test/ci/patches/no-windows.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

templates/test/ci/prow-ci-version-dra/kustomization.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ namespace: default
44
resources:
55
- ../prow-machine-pool-ci-version
66
patches:
7-
- path: ../patches/no-windows.yaml
7+
- patch: |-
8+
- op: add
9+
path: /spec/kubeadmConfigSpec/clusterConfiguration/scheduler
10+
value:
11+
extraArgs: {}
812
target:
9-
name: .*-win.*
13+
kind: KubeadmControlPlane
1014
- path: ../patches/dra-kubeadmcontrolplane.yaml
1115
target:
1216
kind: KubeadmControlPlane

templates/test/dev/cluster-template-custom-builds-dra.yaml

Lines changed: 355 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)