Skip to content

Commit cf3778b

Browse files
committed
Linux nodes are not needed for upstream tests
1 parent cd8dcff commit cf3778b

5 files changed

+25
-14
lines changed

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ metadata:
4242
name: ${CLUSTER_NAME}-control-plane
4343
namespace: default
4444
spec:
45-
infrastructureTemplate:
46-
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
47-
kind: AzureMachineTemplate
48-
name: ${CLUSTER_NAME}-control-plane
4945
kubeadmConfigSpec:
5046
clusterConfiguration:
5147
apiServer:
@@ -198,6 +194,11 @@ spec:
198194
preKubeadmCommands:
199195
- bash -c /tmp/kubeadm-bootstrap.sh
200196
useExperimentalRetryJoin: true
197+
machineTemplate:
198+
infrastructureRef:
199+
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
200+
kind: AzureMachineTemplate
201+
name: ${CLUSTER_NAME}-control-plane
201202
replicas: ${CONTROL_PLANE_MACHINE_COUNT}
202203
version: ${KUBERNETES_VERSION}
203204
---
@@ -232,9 +233,8 @@ metadata:
232233
namespace: default
233234
spec:
234235
clusterName: ${CLUSTER_NAME}
235-
replicas: ${WORKER_MACHINE_COUNT}
236-
selector:
237-
matchLabels: null
236+
replicas: 0
237+
selector: {}
238238
template:
239239
spec:
240240
bootstrap:

templates/test/ci/cluster-template-prow-windows.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,8 @@ metadata:
161161
namespace: default
162162
spec:
163163
clusterName: ${CLUSTER_NAME}
164-
replicas: ${WORKER_MACHINE_COUNT}
165-
selector:
166-
matchLabels: null
164+
replicas: 0
165+
selector: {}
167166
template:
168167
spec:
169168
bootstrap:

templates/test/ci/prow-windows/kustomization.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ patchesStrategicMerge:
88
- ../patches/tags.yaml
99
- ../patches/cluster-cni-windows.yaml
1010
- ../patches/controller-manager.yaml
11+
- patches/drop-linux-pool.yaml
1112
patches:
1213
- target:
1314
group: bootstrap.cluster.x-k8s.io
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: cluster.x-k8s.io/v1alpha4
2+
kind: MachineDeployment
3+
metadata:
4+
name: ${CLUSTER_NAME}-md-0
5+
namespace: default
6+
spec:
7+
# For upstream prow jobs we don't need Linux pools
8+
# the templates are based off the base windows template
9+
# and kustomize doesn't allow remove resources.
10+
replicas: 0

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

+5-4
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ metadata:
4444
name: ${CLUSTER_NAME}-control-plane
4545
namespace: default
4646
spec:
47-
infrastructureTemplate:
48-
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
49-
kind: AzureMachineTemplate
50-
name: ${CLUSTER_NAME}-control-plane
5147
kubeadmConfigSpec:
5248
clusterConfiguration:
5349
apiServer:
@@ -173,6 +169,11 @@ spec:
173169
preKubeadmCommands:
174170
- bash -c /tmp/replace-k8s-binaries.sh
175171
useExperimentalRetryJoin: true
172+
machineTemplate:
173+
infrastructureRef:
174+
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
175+
kind: AzureMachineTemplate
176+
name: ${CLUSTER_NAME}-control-plane
176177
replicas: ${CONTROL_PLANE_MACHINE_COUNT}
177178
version: ${KUBERNETES_VERSION}
178179
---

0 commit comments

Comments
 (0)