Skip to content

Commit 140fd29

Browse files
committed
migrate from v1beta1 to v1beta2
Signed-off-by: sivchari <shibuuuu5@gmail.com>
1 parent 8c385a2 commit 140fd29

File tree

27 files changed

+116
-116
lines changed

27 files changed

+116
-116
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
# DockerCluster object referenced by the Cluster object
3-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
3+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
44
kind: DockerCluster
55
metadata:
66
name: '${CLUSTER_NAME}'
@@ -26,7 +26,7 @@ spec:
2626
# Cluster object with
2727
# - Reference to the KubeadmControlPlane object
2828
# - the label cni=${CLUSTER_NAME}-crs-0, so the cluster can be selected by the ClusterResourceSet.
29-
apiVersion: cluster.x-k8s.io/v1beta1
29+
apiVersion: cluster.x-k8s.io/v1beta2
3030
kind: Cluster
3131
metadata:
3232
name: '${CLUSTER_NAME}'
@@ -40,16 +40,16 @@ spec:
4040
cidrBlocks: ['${DOCKER_POD_CIDRS}']
4141
serviceDomain: '${DOCKER_SERVICE_DOMAIN}'
4242
infrastructureRef:
43-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
43+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
4444
kind: DockerCluster
4545
name: '${CLUSTER_NAME}'
4646
controlPlaneRef:
4747
kind: KubeadmControlPlane
48-
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
48+
apiVersion: controlplane.cluster.x-k8s.io/v1beta2
4949
name: "${CLUSTER_NAME}-control-plane"
5050
---
5151
# DockerMachineTemplate object referenced by the KubeadmControlPlane object
52-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
52+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
5353
kind: DockerMachineTemplate
5454
metadata:
5555
name: "${CLUSTER_NAME}-control-plane"
@@ -65,7 +65,7 @@ spec:
6565
# KubeadmControlPlane referenced by the Cluster object with
6666
# - the label kcp-adoption.step2, because it should be created in the second step of the kcp-adoption test.
6767
kind: KubeadmControlPlane
68-
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
68+
apiVersion: controlplane.cluster.x-k8s.io/v1beta2
6969
metadata:
7070
name: "${CLUSTER_NAME}-control-plane"
7171
labels:
@@ -75,7 +75,7 @@ spec:
7575
machineTemplate:
7676
infrastructureRef:
7777
kind: DockerMachineTemplate
78-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
78+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
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
@@ -1,4 +1,4 @@
1-
apiVersion: cluster.x-k8s.io/v1beta1
1+
apiVersion: cluster.x-k8s.io/v1beta2
22
kind: Cluster
33
metadata:
44
name: '${CLUSTER_NAME}'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ binaryData:
1010
---
1111
# ClusterResourceSet object with
1212
# a selector that targets all the Cluster with label cni=${CLUSTER_NAME}-crs-0
13-
apiVersion: addons.cluster.x-k8s.io/v1beta1
13+
apiVersion: addons.cluster.x-k8s.io/v1beta2
1414
kind: ClusterResourceSet
1515
metadata:
1616
name: "${CLUSTER_NAME}-crs-0"

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
# DockerMachineTemplate referenced by the MachineDeployment and with
33
# - extraMounts for the docker sock, thus allowing self-hosting test
4-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
4+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
55
kind: DockerMachineTemplate
66
metadata:
77
name: "${CLUSTER_NAME}-md-0"
@@ -15,7 +15,7 @@ spec:
1515
preLoadImages: ${DOCKER_PRELOAD_IMAGES:-[]}
1616
---
1717
# KubeadmConfigTemplate referenced by the MachineDeployment
18-
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
18+
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
1919
kind: KubeadmConfigTemplate
2020
metadata:
2121
name: "${CLUSTER_NAME}-md-0"
@@ -26,7 +26,7 @@ spec:
2626
nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use.
2727
---
2828
# MachineDeployment object
29-
apiVersion: cluster.x-k8s.io/v1beta1
29+
apiVersion: cluster.x-k8s.io/v1beta2
3030
kind: MachineDeployment
3131
metadata:
3232
name: "${CLUSTER_NAME}-md-0"
@@ -42,10 +42,10 @@ spec:
4242
bootstrap:
4343
configRef:
4444
name: "${CLUSTER_NAME}-md-0"
45-
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
45+
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
4646
kind: KubeadmConfigTemplate
4747
infrastructureRef:
4848
name: "${CLUSTER_NAME}-md-0"
49-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
49+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
5050
kind: DockerMachineTemplate
5151
failureDomain: fd4

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
# MachinePool which references the DockerMachinePool and KubeadmConfigTemplate below
3-
apiVersion: cluster.x-k8s.io/v1beta1
3+
apiVersion: cluster.x-k8s.io/v1beta2
44
kind: MachinePool
55
metadata:
66
name: "${CLUSTER_NAME}-mp-0"
@@ -11,12 +11,12 @@ spec:
1111
spec:
1212
bootstrap:
1313
configRef:
14-
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
14+
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
1515
kind: KubeadmConfig
1616
name: "${CLUSTER_NAME}-mp-0-config"
1717
clusterName: '${CLUSTER_NAME}'
1818
infrastructureRef:
19-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
19+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
2020
kind: DockerMachinePool
2121
name: "${CLUSTER_NAME}-dmp-0"
2222
version: "${KUBERNETES_VERSION}"
@@ -28,7 +28,7 @@ spec:
2828
- fd8
2929
---
3030
# DockerMachinePool using default values referenced by the MachinePool
31-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
31+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
3232
kind: DockerMachinePool
3333
metadata:
3434
name: "${CLUSTER_NAME}-dmp-0"
@@ -38,7 +38,7 @@ spec:
3838
preLoadImages: ${DOCKER_PRELOAD_IMAGES:-[]}
3939
---
4040
# KubeadmConfigTemplate referenced by the MachinePool
41-
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
41+
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
4242
kind: KubeadmConfig
4343
metadata:
4444
name: "${CLUSTER_NAME}-mp-0-config"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
kind: KubeadmControlPlane
2-
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
2+
apiVersion: controlplane.cluster.x-k8s.io/v1beta2
33
metadata:
44
name: "${CLUSTER_NAME}-control-plane"
55
spec:
@@ -24,7 +24,7 @@ spec:
2424
cgroup-root: "/kubelet"
2525
runtime-cgroups: "/system.slice/containerd.service"
2626
---
27-
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
27+
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
2828
kind: KubeadmConfigTemplate
2929
metadata:
3030
name: "${CLUSTER_NAME}-md-0"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: cluster.x-k8s.io/v1beta1
1+
apiVersion: cluster.x-k8s.io/v1beta2
22
kind: Cluster
33
metadata:
44
name: "${CLUSTER_NAME}"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
apiVersion: cluster.x-k8s.io/v1beta1
2+
apiVersion: cluster.x-k8s.io/v1beta2
33
kind: Cluster
44
metadata:
55
name: '${CLUSTER_NAME}'
@@ -10,7 +10,7 @@ spec:
1010
pods:
1111
cidrBlocks: ['${DOCKER_POD_IPV6_CIDRS}']
1212
---
13-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
13+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
1414
kind: DockerCluster
1515
metadata:
1616
name: '${CLUSTER_NAME}'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
kind: KubeadmControlPlane
3-
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
3+
apiVersion: controlplane.cluster.x-k8s.io/v1beta2
44
metadata:
55
name: "${CLUSTER_NAME}-control-plane"
66
spec:

test/e2e/data/infrastructure-docker/main/cluster-template-ipv6/md-ipv6.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
2+
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
33
kind: KubeadmConfigTemplate
44
metadata:
55
name: "${CLUSTER_NAME}-md-0"

0 commit comments

Comments
 (0)