Skip to content

Commit 8a107d9

Browse files
committed
use v1beta2 in runtime extension
Signed-off-by: sivchari <shibuuuu5@gmail.com>
1 parent 140fd29 commit 8a107d9

File tree

13 files changed

+153
-152
lines changed

13 files changed

+153
-152
lines changed

test/e2e/data/infrastructure-docker/main/bases/cluster-with-kcp.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ metadata:
66
name: '${CLUSTER_NAME}'
77
spec:
88
failureDomains:
9-
fd1:
9+
- name: fd1
1010
controlPlane: true
11-
fd2:
11+
- name: fd2
1212
controlPlane: true
13-
fd3:
13+
- name: fd3
1414
controlPlane: true
15-
fd4:
15+
- name: fd4
1616
controlPlane: false
17-
fd5:
17+
- name: fd5
1818
controlPlane: false
19-
fd6:
19+
- name: fd6
2020
controlPlane: false
21-
fd7:
21+
- name: fd7
2222
controlPlane: false
23-
fd8:
23+
- name: fd8
2424
controlPlane: false
2525
---
2626
# Cluster object with
@@ -40,12 +40,12 @@ spec:
4040
cidrBlocks: ['${DOCKER_POD_CIDRS}']
4141
serviceDomain: '${DOCKER_SERVICE_DOMAIN}'
4242
infrastructureRef:
43-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
43+
apiGroup: infrastructure.cluster.x-k8s.io
4444
kind: DockerCluster
4545
name: '${CLUSTER_NAME}'
4646
controlPlaneRef:
4747
kind: KubeadmControlPlane
48-
apiVersion: controlplane.cluster.x-k8s.io/v1beta2
48+
apiGroup: controlplane.cluster.x-k8s.io
4949
name: "${CLUSTER_NAME}-control-plane"
5050
---
5151
# DockerMachineTemplate object referenced by the KubeadmControlPlane object
@@ -75,7 +75,7 @@ spec:
7575
machineTemplate:
7676
infrastructureRef:
7777
kind: DockerMachineTemplate
78-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
78+
apiGroup: infrastructure.cluster.x-k8s.io
7979
name: "${CLUSTER_NAME}-control-plane"
8080
kubeadmConfigSpec:
8181
clusterConfiguration:

test/e2e/data/infrastructure-docker/main/bases/cluster-with-topology.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ spec:
6767
minReadySeconds: 5
6868
replicas: ${WORKER_MACHINE_COUNT}
6969
failureDomains:
70-
- fd4
70+
- name: fd4
7171
variables:
7272
# We set an empty value to use the default tag kubeadm init is using.
7373
- name: etcdImageTag

test/e2e/data/infrastructure-docker/main/bases/md.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ spec:
4242
bootstrap:
4343
configRef:
4444
name: "${CLUSTER_NAME}-md-0"
45-
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
45+
apiGroup: bootstrap.cluster.x-k8s.io
4646
kind: KubeadmConfigTemplate
4747
infrastructureRef:
4848
name: "${CLUSTER_NAME}-md-0"
49-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
49+
apiGroup: infrastructure.cluster.x-k8s.io
5050
kind: DockerMachineTemplate
5151
failureDomain: fd4

test/e2e/data/infrastructure-docker/main/bases/mp.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ spec:
1111
spec:
1212
bootstrap:
1313
configRef:
14-
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
14+
apiGroup: bootstrap.cluster.x-k8s.io
1515
kind: KubeadmConfig
1616
name: "${CLUSTER_NAME}-mp-0-config"
1717
clusterName: '${CLUSTER_NAME}'
1818
infrastructureRef:
19-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
19+
apiGroup: infrastructure.cluster.x-k8s.io/v1beta2
2020
kind: DockerMachinePool
2121
name: "${CLUSTER_NAME}-dmp-0"
2222
version: "${KUBERNETES_VERSION}"
2323
failureDomains:
24-
- fd4
25-
- fd5
26-
- fd6
27-
- fd7
28-
- fd8
24+
- name: fd4
25+
- name: fd5
26+
- name: fd6
27+
- name: fd7
28+
- name: fd8
2929
---
3030
# DockerMachinePool using default values referenced by the MachinePool
3131
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2

test/e2e/data/infrastructure-docker/main/cluster-template-kcp-adoption/step1/cluster-with-cp0.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spec:
2222
cidrBlocks: ['${DOCKER_POD_CIDRS}']
2323
serviceDomain: '${DOCKER_SERVICE_DOMAIN}'
2424
infrastructureRef:
25-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
25+
apiGroup: infrastructure.cluster.x-k8s.io
2626
kind: DockerCluster
2727
name: '${CLUSTER_NAME}'
2828
---
@@ -60,9 +60,9 @@ spec:
6060
bootstrap:
6161
configRef:
6262
name: "${ CLUSTER_NAME }-control-plane-0"
63-
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
63+
apiGroup: bootstrap.cluster.x-k8s.io
6464
kind: KubeadmConfig
6565
infrastructureRef:
6666
name: "${ CLUSTER_NAME }-control-plane-0"
67-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
67+
apiGroup: infrastructure.cluster.x-k8s.io
6868
kind: DockerMachine

test/e2e/data/infrastructure-docker/main/cluster-template-kcp-remediation/cluster-with-kcp.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ spec:
2222
cidrBlocks: ['${DOCKER_POD_CIDRS}']
2323
serviceDomain: '${DOCKER_SERVICE_DOMAIN}'
2424
infrastructureRef:
25-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
25+
apiGroup: infrastructure.cluster.x-k8s.io
2626
kind: DockerCluster
2727
name: '${CLUSTER_NAME}'
2828
controlPlaneRef:
2929
kind: KubeadmControlPlane
30-
apiVersion: controlplane.cluster.x-k8s.io/v1beta2
30+
apiGroup: controlplane.cluster.x-k8s.io
3131
name: "${CLUSTER_NAME}-control-plane"
3232
---
3333
# DockerMachineTemplate object referenced by the KubeadmControlPlane object
@@ -50,7 +50,7 @@ spec:
5050
machineTemplate:
5151
infrastructureRef:
5252
kind: DockerMachineTemplate
53-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
53+
apiGroup: infrastructure.cluster.x-k8s.io
5454
name: "${CLUSTER_NAME}-control-plane"
5555
kubeadmConfigSpec:
5656
clusterConfiguration:

test/e2e/data/infrastructure-docker/main/cluster-template-upgrades-runtimesdk/cluster-runtimesdk.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ spec:
3737
minReadySeconds: 5
3838
replicas: ${WORKER_MACHINE_COUNT}
3939
failureDomains:
40-
- fd4
40+
- name: fd4
4141
variables:
4242
- name: kubeadmControlPlaneMaxSurge
4343
value: "1"

test/e2e/data/infrastructure-docker/main/clusterclass-in-memory.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ spec:
109109
annotations:
110110
machineInfrastructure:
111111
ref:
112-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
112+
apiGroup: infrastructure.cluster.x-k8s.io
113113
kind: DevMachineTemplate
114114
name: in-memory-control-plane
115115
ref:
116-
apiVersion: controlplane.cluster.x-k8s.io/v1beta2
116+
apiGroup: controlplane.cluster.x-k8s.io
117117
kind: KubeadmControlPlaneTemplate
118118
name: in-memory-control-plane
119119
machineHealthCheck:
@@ -126,7 +126,7 @@ spec:
126126
timeout: 300s
127127
infrastructure:
128128
ref:
129-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
129+
apiGroup: infrastructure.cluster.x-k8s.io
130130
kind: DevClusterTemplate
131131
name: in-memory-cluster
132132
workers:
@@ -135,12 +135,12 @@ spec:
135135
template:
136136
bootstrap:
137137
ref:
138-
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
138+
apiGroup: bootstrap.cluster.x-k8s.io
139139
kind: KubeadmConfigTemplate
140140
name: in-memory-default-worker-bootstraptemplate
141141
infrastructure:
142142
ref:
143-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
143+
apiGroup: infrastructure.cluster.x-k8s.io
144144
kind: DevMachineTemplate
145145
name: in-memory-default-worker-machinetemplate
146146
machineHealthCheck:

test/e2e/data/infrastructure-docker/main/clusterclass-quick-start-runtimesdk.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ metadata:
55
spec:
66
controlPlane:
77
ref:
8-
apiVersion: controlplane.cluster.x-k8s.io/v1beta2
8+
apiGroup: controlplane.cluster.x-k8s.io
99
kind: KubeadmControlPlaneTemplate
1010
name: quick-start-control-plane
1111
machineInfrastructure:
1212
ref:
1313
kind: DockerMachineTemplate
14-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
14+
apiGroup: infrastructure.cluster.x-k8s.io
1515
name: quick-start-control-plane
1616
namingStrategy:
1717
template: "{{ .cluster.name }}-cp-{{ .random }}"
1818
infrastructure:
1919
ref:
20-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
20+
apiGroup: infrastructure.cluster.x-k8s.io
2121
kind: DockerClusterTemplate
2222
name: quick-start-cluster
2323
infrastructureNamingStrategy:
@@ -30,12 +30,12 @@ spec:
3030
template:
3131
bootstrap:
3232
ref:
33-
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
33+
apiGroup: bootstrap.cluster.x-k8s.io
3434
kind: KubeadmConfigTemplate
3535
name: quick-start-default-worker-bootstraptemplate
3636
infrastructure:
3737
ref:
38-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
38+
apiGroup: infrastructure.cluster.x-k8s.io
3939
kind: DockerMachineTemplate
4040
name: quick-start-default-worker-machinetemplate
4141
machinePools:
@@ -45,12 +45,12 @@ spec:
4545
template:
4646
bootstrap:
4747
ref:
48-
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
48+
apiGroup: bootstrap.cluster.x-k8s.io
4949
kind: KubeadmConfigTemplate
5050
name: quick-start-default-worker-bootstraptemplate
5151
infrastructure:
5252
ref:
53-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
53+
apiGroup: infrastructure.cluster.x-k8s.io
5454
kind: DockerMachinePoolTemplate
5555
name: quick-start-default-worker-machinepooltemplate
5656
patches:

test/e2e/data/infrastructure-docker/main/clusterclass-quick-start.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ spec:
1010
annotations:
1111
ClusterClass.controlPlane.annotation: "ClusterClass.controlPlane.annotationValue"
1212
ref:
13-
apiVersion: controlplane.cluster.x-k8s.io/v1beta2
13+
apiGroup: controlplane.cluster.x-k8s.io
1414
kind: KubeadmControlPlaneTemplate
1515
name: quick-start-control-plane
1616
machineInfrastructure:
1717
ref:
1818
kind: DockerMachineTemplate
19-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
19+
apiGroup: infrastructure.cluster.x-k8s.io
2020
name: quick-start-control-plane
2121
machineHealthCheck:
2222
maxUnhealthy: 100%
@@ -26,7 +26,7 @@ spec:
2626
timeout: 20s
2727
infrastructure:
2828
ref:
29-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
29+
apiGroup: infrastructure.cluster.x-k8s.io
3030
kind: DockerClusterTemplate
3131
name: quick-start-cluster
3232
workers:
@@ -40,12 +40,12 @@ spec:
4040
ClusterClass.machineDeployment.annotation: "ClusterClass.machineDeployment.annotationValue"
4141
bootstrap:
4242
ref:
43-
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
43+
apiGroup: bootstrap.cluster.x-k8s.io
4444
kind: KubeadmConfigTemplate
4545
name: quick-start-md-default-worker-bootstraptemplate
4646
infrastructure:
4747
ref:
48-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
48+
apiGroup: infrastructure.cluster.x-k8s.io
4949
kind: DockerMachineTemplate
5050
name: quick-start-default-worker-machinetemplate
5151
machineHealthCheck:
@@ -61,12 +61,12 @@ spec:
6161
ClusterClass.machinePool.annotation: "ClusterClass.machinePool.annotationValue"
6262
bootstrap:
6363
ref:
64-
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
64+
apiGroup: bootstrap.cluster.x-k8s.io
6565
kind: KubeadmConfigTemplate
6666
name: quick-start-mp-default-worker-bootstraptemplate
6767
infrastructure:
6868
ref:
69-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
69+
apiGroup: infrastructure.cluster.x-k8s.io
7070
kind: DockerMachinePoolTemplate
7171
name: quick-start-default-worker-machinepooltemplate
7272
variables:

0 commit comments

Comments
 (0)