File tree Expand file tree Collapse file tree 6 files changed +54
-0
lines changed
data/infrastructure-docker/v1beta1/main
cluster-template-topology-single-node-cluster Expand file tree Collapse file tree 6 files changed +54
-0
lines changed Original file line number Diff line number Diff line change @@ -1209,6 +1209,7 @@ generate-e2e-templates-v1beta1: $(KUSTOMIZE)
1209
1209
$(KUSTOMIZE ) build $(DOCKER_TEMPLATES ) /v1beta1/main/cluster-template-upgrades-runtimesdk --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES ) /v1beta1/main/cluster-template-upgrades-runtimesdk.yaml
1210
1210
$(KUSTOMIZE ) build $(DOCKER_TEMPLATES ) /v1beta1/main/cluster-template-kcp-scale-in --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES ) /v1beta1/main/cluster-template-kcp-scale-in.yaml
1211
1211
$(KUSTOMIZE ) build $(DOCKER_TEMPLATES ) /v1beta1/main/cluster-template-ipv6 --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES ) /v1beta1/main/cluster-template-ipv6.yaml
1212
+ $(KUSTOMIZE ) build $(DOCKER_TEMPLATES ) /v1beta1/main/cluster-template-topology-single-node-cluster --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES ) /v1beta1/main/cluster-template-topology-single-node-cluster.yaml
1212
1213
$(KUSTOMIZE ) build $(DOCKER_TEMPLATES ) /v1beta1/main/cluster-template-topology --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES ) /v1beta1/main/cluster-template-topology.yaml
1213
1214
$(KUSTOMIZE ) build $(DOCKER_TEMPLATES ) /v1beta1/main/cluster-template-ignition --load-restrictor LoadRestrictionsNone > $(DOCKER_TEMPLATES ) /v1beta1/main/cluster-template-ignition.yaml
1214
1215
Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ providers:
195
195
- sourcePath : " ../data/infrastructure-docker/v1beta1/main/cluster-template-upgrades-runtimesdk.yaml"
196
196
- sourcePath : " ../data/infrastructure-docker/v1beta1/main/cluster-template-kcp-scale-in.yaml"
197
197
- sourcePath : " ../data/infrastructure-docker/v1beta1/main/cluster-template-ipv6.yaml"
198
+ - sourcePath : " ../data/infrastructure-docker/v1beta1/main/cluster-template-topology-single-node-cluster.yaml"
198
199
- sourcePath : " ../data/infrastructure-docker/v1beta1/main/cluster-template-topology.yaml"
199
200
- sourcePath : " ../data/infrastructure-docker/v1beta1/main/cluster-template-ignition.yaml"
200
201
- sourcePath : " ../data/infrastructure-docker/v1beta1/main/clusterclass-quick-start.yaml"
Original file line number Diff line number Diff line change
1
+ - op : add
2
+ path : /spec/topology/variables/-
3
+ value :
4
+ name : controlPlaneTaint
5
+ value : false
Original file line number Diff line number Diff line change
1
+ resources :
2
+ - ../bases/cluster-with-topology.yaml
3
+ - ../bases/crs.yaml
4
+
5
+ patches :
6
+ - path : disable-control-plane-taint-variable.yaml
7
+ target :
8
+ group : cluster.x-k8s.io
9
+ version : v1beta1
10
+ kind : Cluster
11
+
Original file line number Diff line number Diff line change 84
84
items :
85
85
type : string
86
86
description : " preLoadImages sets the images for the docker machines to preload."
87
+ - name : controlPlaneTaint
88
+ required : false
89
+ schema :
90
+ openAPIV3Schema :
91
+ type : boolean
92
+ default : true
87
93
patches :
88
94
- name : lbImageRepository
89
95
definitions :
@@ -225,6 +231,21 @@ spec:
225
231
path : /spec/template/spec/rolloutStrategy/rollingUpdate/maxSurge
226
232
valueFrom :
227
233
template : " {{ .kubeadmControlPlaneMaxSurge }}"
234
+ - name : controlPlaneTaint
235
+ enabledIf : " {{ not .controlPlaneTaint }}"
236
+ definitions :
237
+ - selector :
238
+ apiVersion : controlplane.cluster.x-k8s.io/v1beta1
239
+ kind : KubeadmControlPlaneTemplate
240
+ matchResources :
241
+ controlPlane : true
242
+ jsonPatches :
243
+ - op : add
244
+ path : " /spec/template/spec/kubeadmConfigSpec/initConfiguration/nodeRegistration/taints"
245
+ value : []
246
+ - op : add
247
+ path : " /spec/template/spec/kubeadmConfigSpec/joinConfiguration/nodeRegistration/taints"
248
+ value : []
228
249
---
229
250
apiVersion : infrastructure.cluster.x-k8s.io/v1beta1
230
251
kind : DockerClusterTemplate
Original file line number Diff line number Diff line change @@ -65,3 +65,18 @@ var _ = Describe("When testing Cluster API working on self-hosted clusters using
65
65
}
66
66
})
67
67
})
68
+
69
+ var _ = Describe ("When testing Cluster API working on single-node self-hosted clusters using ClusterClass [ClusterClass]" , func () {
70
+ SelfHostedSpec (ctx , func () SelfHostedSpecInput {
71
+ return SelfHostedSpecInput {
72
+ E2EConfig : e2eConfig ,
73
+ ClusterctlConfigPath : clusterctlConfigPath ,
74
+ BootstrapClusterProxy : bootstrapClusterProxy ,
75
+ ArtifactFolder : artifactFolder ,
76
+ SkipCleanup : skipCleanup ,
77
+ Flavor : "topology-single-node-cluster" ,
78
+ ControlPlaneMachineCount : pointer .Int64Ptr (1 ),
79
+ WorkerMachineCount : pointer .Int64Ptr (0 ),
80
+ }
81
+ })
82
+ })
You can’t perform that action at this time.
0 commit comments