Skip to content

Add custom-builds-load-dra template #5650

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

Merged
merged 1 commit into from
May 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
357 changes: 357 additions & 0 deletions templates/test/ci/cluster-template-prow-ci-version-dra.yaml

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions templates/test/ci/patches/dra-kubeadmconfigtemplate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
- op: add
path: /spec/template/spec/files/-
value:
content: |
#!/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: /tmp/containerd-config.sh
permissions: "0744"
- op: add
path: /spec/template/spec/preKubeadmCommands/0
value: bash -c /tmp/containerd-config.sh
- op: add
path: /spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs/feature-gates
value: ${NODE_FEATURE_GATES:-"DynamicResourceAllocation=true"}
6 changes: 2 additions & 4 deletions templates/test/ci/patches/dra-kubeadmcontrolplane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@
path: /spec/kubeadmConfigSpec/clusterConfiguration/apiServer/extraArgs/runtime-config
value: resource.k8s.io/v1beta1=true
- op: add
path: /spec/kubeadmConfigSpec/clusterConfiguration/scheduler
value:
extraArgs:
feature-gates: DynamicResourceAllocation=true
path: /spec/kubeadmConfigSpec/clusterConfiguration/scheduler/extraArgs/feature-gates
value: DynamicResourceAllocation=true
- op: add
path: /spec/kubeadmConfigSpec/initConfiguration/nodeRegistration/kubeletExtraArgs/feature-gates
value: DynamicResourceAllocation=true
Expand Down
5 changes: 0 additions & 5 deletions templates/test/ci/patches/no-windows.yaml

This file was deleted.

8 changes: 6 additions & 2 deletions templates/test/ci/prow-ci-version-dra/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ namespace: default
resources:
- ../prow-machine-pool-ci-version
patches:
- path: ../patches/no-windows.yaml
- patch: |-
- op: add
path: /spec/kubeadmConfigSpec/clusterConfiguration/scheduler
value:
extraArgs: {}
target:
name: .*-win.*
kind: KubeadmControlPlane
- path: ../patches/dra-kubeadmcontrolplane.yaml
target:
kind: KubeadmControlPlane
Expand Down
355 changes: 355 additions & 0 deletions templates/test/dev/cluster-template-custom-builds-dra.yaml

Large diffs are not rendered by default.

Loading
Loading