Skip to content

Commit

Permalink
Bump e2e tests to kubernetes v1.31.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Aug 13, 2024
1 parent c6eff61 commit fda80d1
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 50 deletions.
1 change: 1 addition & 0 deletions internal/test/helpers/vcsim/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ var (
"ubuntu-2204-kube-v1.28.0",
"ubuntu-2204-kube-v1.29.0",
"ubuntu-2204-kube-v1.30.0",
"ubuntu-2204-kube-v1.31.0",
}
)

Expand Down
46 changes: 20 additions & 26 deletions packaging/flavorgen/cloudprovider/cpi/cpi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,21 +131,25 @@ spec:
vsphere-cpi-infra: daemonset
spec:
tolerations:
- key: node.cloudprovider.kubernetes.io/uninitialized
value: "true"
effect: NoSchedule
- key: node-role.kubernetes.io/master
effect: NoSchedule
operator: Exists
- key: node-role.kubernetes.io/control-plane
effect: NoSchedule
operator: Exists
- key: node.kubernetes.io/not-ready
effect: NoSchedule
operator: Exists
- key: CriticalAddonsOnly
effect: NoExecute
operator: Exists
- effect: NoSchedule
key: node.cloudprovider.kubernetes.io/uninitialized
value: "true"
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/not-ready
operator: Exists
- effect: NoExecute
key: CriticalAddonsOnly
operator: Exists
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
securityContext:
fsGroup: 1001
runAsUser: 1001
Expand All @@ -155,7 +159,7 @@ spec:
priorityClassName: system-node-critical
containers:
- name: vsphere-cpi
image: registry.k8s.io/cloud-pv-vsphere/cloud-provider-vsphere:v1.30.0-rc.0
image: registry.k8s.io/cloud-pv-vsphere/cloud-provider-vsphere:v1.31.0
imagePullPolicy: IfNotPresent
args:
- --cloud-provider=vsphere
Expand All @@ -169,16 +173,6 @@ spec:
- name: vsphere-config-volume
configMap:
name: cloud-config
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
- matchExpressions:
- key: node-role.kubernetes.io/master
operator: Exists
---
# Source: vsphere-cpi/templates/role-binding.yaml
apiVersion: v1
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/config/config-overrides-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ variables:
VSPHERE_DATASTORE: "WorkloadDatastore"
VSPHERE_STORAGE_POLICY: "Cluster API vSphere Storage Policy"
VSPHERE_NETWORK: "network-1"
VSPHERE_TEMPLATE: "ubuntu-2204-kube-v1.30.0"
FLATCAR_VSPHERE_TEMPLATE: "flatcar-stable-3815.2.2-kube-v1.30.0"
VSPHERE_TEMPLATE: "ubuntu-2204-kube-v1.31.0"
FLATCAR_VSPHERE_TEMPLATE: "flatcar-stable-3975.2.0-kube-v1.31.0"
CONTROL_PLANE_ENDPOINT_IP: "10.0.0.10"
# Only for clusterctl upgrade tests
# WORKLOAD_CONTROL_PLANE_ENDPOINT_IP:
Expand All @@ -27,7 +27,7 @@ variables:
VSPHERE2_SERVER: "vcenter2.vmware.com"
VSPHERE2_TLS_THUMBPRINT: "AA:BB:CC:DD:11:22:33:44:EE:FF"
VSPHERE2_RESOURCE_POOL: "ResourcePool"
VSPHERE2_TEMPLATE: "ubuntu-2204-kube-v1.30.0"
VSPHERE2_TEMPLATE: "ubuntu-2204-kube-v1.31.0"
VSPHERE2_CONTROL_PLANE_ENDPOINT_IP: "10.0.0.11"
# Also following variables are required but it is recommended to use env variables to avoid disclosure of sensitive data
# VSPHERE2_USERNAME:
Expand Down
18 changes: 9 additions & 9 deletions test/e2e/config/vsphere.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,12 @@ providers:

variables:
# Ensure all Kubernetes versions used here are covered in patch-vsphere-template.yaml
KUBERNETES_VERSION_MANAGEMENT: "v1.31.0-rc.1"
KUBERNETES_VERSION: "v1.31.0-rc.1"
KUBERNETES_VERSION_MANAGEMENT: "v1.31.0"
KUBERNETES_VERSION: "v1.31.0"
KUBERNETES_VERSION_UPGRADE_FROM: "v1.30.0"
KUBERNETES_VERSION_UPGRADE_TO: "v1.31.0-rc.1"
KUBERNETES_VERSION_LATEST_CI: "ci/latest-1.31"
CPI_IMAGE_K8S_VERSION: "v1.31.0-rc.1"
KUBERNETES_VERSION_UPGRADE_TO: "v1.31.0"
KUBERNETES_VERSION_LATEST_CI: "ci/latest-1.32"
CPI_IMAGE_K8S_VERSION: "v1.31.0"
CNI: "./data/cni/calico/calico.yaml"
EXP_CLUSTER_RESOURCE_SET: "true"
EXP_KUBEADM_BOOTSTRAP_FORMAT_IGNITION: "true"
Expand All @@ -294,12 +294,12 @@ variables:
VSPHERE_MACHINE_CLASS_CPU_CONFORMANCE: "8"
VSPHERE_MACHINE_CLASS_MEMORY_CONFORMANCE: "8Gi"
VSPHERE_CONTENT_LIBRARY: "capv"
VSPHERE_CONTENT_LIBRARY_ITEMS: "ubuntu-2204-kube-v1.28.0,ubuntu-2204-kube-v1.29.0,ubuntu-2204-kube-v1.30.0"
VSPHERE_IMAGE_NAME: "ubuntu-2204-kube-v1.30.0"
VSPHERE_CONTENT_LIBRARY_ITEMS: "ubuntu-2204-kube-v1.28.0,ubuntu-2204-kube-v1.29.0,ubuntu-2204-kube-v1.30.0,,ubuntu-2204-kube-v1.31.0"
VSPHERE_IMAGE_NAME: "ubuntu-2204-kube-v1.31.0"
VSPHERE_NETWORK: "sddc-cgw-network-10"
VSPHERE_DISTRIBUTED_PORT_GROUP: "/SDDC-Datacenter/network/sddc-cgw-network-10"
VSPHERE_TEMPLATE: "ubuntu-2204-kube-v1.30.0"
FLATCAR_VSPHERE_TEMPLATE: "flatcar-stable-3815.2.2-kube-v1.30.0"
VSPHERE_TEMPLATE: "ubuntu-2204-kube-v1.31.0"
FLATCAR_VSPHERE_TEMPLATE: "flatcar-stable-3815.2.2-kube-v1.31.0"
KUBETEST_CONFIGURATION: "./data/kubetest/conformance.yaml"
NODE_DRAIN_TIMEOUT: "60s"
CLUSTER_TOPOLOGY: "true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@
template: |-
{{- if eq .builtin.controlPlane.version "v1.28.0" -}}
ubuntu-2204-kube-v1.28.0
{{- else -}}{{- if eq .builtin.controlPlane.version "v1.29.0" -}}
{{- else if eq .builtin.controlPlane.version "v1.29.0" -}}
ubuntu-2204-kube-v1.29.0
{{- else -}}
{{- else if eq .builtin.controlPlane.version "v1.30.0" -}}
ubuntu-2204-kube-v1.30.0
{{- end -}}{{- end -}}
{{- else -}}
ubuntu-2204-kube-v1.31.0
{{- end -}}
selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: VSphereMachineTemplate
Expand All @@ -30,11 +32,13 @@
template: |-
{{- if eq .builtin.machineDeployment.version "v1.28.0" -}}
ubuntu-2204-kube-v1.28.0
{{- else -}}{{- if eq .builtin.machineDeployment.version "v1.29.0" -}}
{{- else if eq .builtin.machineDeployment.version "v1.29.0" -}}
ubuntu-2204-kube-v1.29.0
{{- else -}}
{{- else if eq .builtin.machineDeployment.version "v1.30.0" -}}
ubuntu-2204-kube-v1.30.0
{{- end -}}{{- end -}}
{{- else -}}
ubuntu-2204-kube-v1.31.0
{{- end -}}
selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: VSphereMachineTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@
template: |-
{{- if eq .builtin.controlPlane.version "v1.28.0" -}}
ubuntu-2204-kube-v1.28.0
{{- else -}}{{- if eq .builtin.controlPlane.version "v1.29.0" -}}
{{- else if eq .builtin.controlPlane.version "v1.29.0" -}}
ubuntu-2204-kube-v1.29.0
{{- else -}}
{{- else if eq .builtin.controlPlane.version "v1.30.0" -}}
ubuntu-2204-kube-v1.30.0
{{- end -}}{{- end -}}
{{- else -}}
ubuntu-2204-kube-v1.31.0
{{- end -}}
selector:
apiVersion: vmware.infrastructure.cluster.x-k8s.io/v1beta1
kind: VSphereMachineTemplate
Expand All @@ -30,11 +32,13 @@
template: |-
{{- if eq .builtin.machineDeployment.version "v1.28.0" -}}
ubuntu-2204-kube-v1.28.0
{{- else -}}{{- if eq .builtin.machineDeployment.version "v1.29.0" -}}
{{- else if eq .builtin.machineDeployment.version "v1.29.0" -}}
ubuntu-2204-kube-v1.29.0
{{- else -}}
{{- else if eq .builtin.machineDeployment.version "v1.30.0" -}}
ubuntu-2204-kube-v1.30.0
{{- end -}}{{- end -}}
{{- else -}}
ubuntu-2204-kube-v1.31.0
{{- end -}}
selector:
apiVersion: vmware.infrastructure.cluster.x-k8s.io/v1beta1
kind: VSphereMachineTemplate
Expand Down

0 comments on commit fda80d1

Please sign in to comment.