Skip to content

Commit

Permalink
✨ Bump e2e tests to kubernetes v1.31.0 (#3154)
Browse files Browse the repository at this point in the history
* Bump e2e tests to kubernetes v1.31.0

* revert to CPI v1.31.0-rc.1

* fix flatcar image

---------

Co-authored-by: Stefan Bueringer <[email protected]>
  • Loading branch information
chrischdi and sbueringer committed Aug 14, 2024
1 parent 4f8d638 commit 31ee7f1
Show file tree
Hide file tree
Showing 13 changed files with 185 additions and 224 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
44 changes: 19 additions & 25 deletions templates/cluster-template-external-loadbalancer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1258,21 +1258,25 @@ data:
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 @@ -1296,16 +1300,6 @@ data:
- 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
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down
44 changes: 19 additions & 25 deletions templates/cluster-template-ignition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1478,21 +1478,25 @@ data:
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 @@ -1516,16 +1520,6 @@ data:
- 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
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down
44 changes: 19 additions & 25 deletions templates/cluster-template-node-ipam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1393,21 +1393,25 @@ data:
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 @@ -1431,16 +1435,6 @@ data:
- 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
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down
44 changes: 19 additions & 25 deletions templates/cluster-template-supervisor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1343,21 +1343,25 @@ data:
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 @@ -1381,16 +1385,6 @@ data:
- 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
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down
44 changes: 19 additions & 25 deletions templates/cluster-template-topology-supervisor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1151,21 +1151,25 @@ data:
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 @@ -1189,16 +1193,6 @@ data:
- 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
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down
Loading

0 comments on commit 31ee7f1

Please sign in to comment.