Skip to content

Commit

Permalink
Bump RKE2 API version
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
  • Loading branch information
alexander-demicev authored and furkatgofurov7 committed Jun 3, 2024
1 parent f2fd625 commit c31f77c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test/e2e/data/cluster-templates/docker-rke2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,13 @@ spec:
customImage: kindest/node:v1.28.0
bootstrapTimeout: 15m
---
apiVersion: controlplane.cluster.x-k8s.io/v1alpha1
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
kind: RKE2ControlPlane
metadata:
name: ${CLUSTER_NAME}-control-plane
spec:
spec:
version: ${KUBERNETES_VERSION}+rke2r1
replicas: ${CONTROL_PLANE_MACHINE_COUNT}
agentConfig:
version: ${KUBERNETES_VERSION}+rke2r1
serverConfig:
disableComponents:
kubernetesComponents:
Expand All @@ -58,6 +57,12 @@ spec:
kind: DockerMachineTemplate
name: ${CLUSTER_NAME}-control-plane
nodeDrainTimeout: 30s
rolloutStrategy:
type: "RollingUpdate"
rollingUpdate:
maxSurge: 1
registrationMethod:
type: "internal-first"
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: DockerMachineTemplate
Expand All @@ -69,15 +74,10 @@ spec:
customImage: kindest/node:v1.28.0
bootstrapTimeout: 15m
---
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha1
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: RKE2ConfigTemplate
metadata:
name: ${CLUSTER_NAME}-md-0
spec:
template:
spec:
agentConfig:
version: ${KUBERNETES_VERSION}+rke2r1
---
apiVersion: cluster.x-k8s.io/v1beta1
kind: MachineDeployment
Expand All @@ -91,11 +91,11 @@ spec:
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
template:
spec:
version: ${KUBERNETES_VERSION}
version: ${KUBERNETES_VERSION}+rke2r1
clusterName: ${CLUSTER_NAME}
bootstrap:
configRef:
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha1
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: RKE2ConfigTemplate
name: ${CLUSTER_NAME}-md-0
infrastructureRef:
Expand Down

0 comments on commit c31f77c

Please sign in to comment.