Skip to content

Commit

Permalink
Increase the minimum Kubernetes version to v1.22.0 (#2236)
Browse files Browse the repository at this point in the history
* Increase the minimum Kubernetes version to v1.22.0

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>

* Remove images used for Kubernetes v1.21 and v1.20

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>

* Remove Kubernetes 1.21 tests

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>

* Remove policy/v1beta1 PDBs

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>

* Remove <= 1.22 logic from Cinder CSI addon

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>

* Remove kubeadm v1beta2 API

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>

* Remove legacy Docker version

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>

* Remove default admission controllers for legacy k8s versions

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>

* Simplify containerRuntime defaulting

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>

* Replace Kubernetes 1.20/1.21 with 1.22

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>

* Fix lint errors and gofmt

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>

* Fix failing unit test

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>

* Update fixtures

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
  • Loading branch information
xmudrii authored Aug 5, 2022
1 parent 3ad3618 commit 9efb5c8
Show file tree
Hide file tree
Showing 86 changed files with 870 additions and 5,173 deletions.
324 changes: 0 additions & 324 deletions .prow/1.21.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions addons/calico-vxlan/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ apiVersion: kubeone.k8c.io/v1beta2
kind: KubeOneCluster

versions:
kubernetes: 1.20.4
kubernetes: 1.23.9

clusterNetwork:
cni:
Expand All @@ -34,7 +34,7 @@ apiVersion: kubeone.k8c.io/v1beta2
kind: KubeOneCluster

versions:
kubernetes: 1.20.4
kubernetes: 1.23.9

clusterNetwork:
cni:
Expand Down
5 changes: 0 additions & 5 deletions addons/ccm-azure/poddisruptionbudget.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{{ $version := semver .Config.Versions.Kubernetes }}
{{- if ge $version.Minor 21 }}
apiVersion: policy/v1
{{- else }}
apiVersion: policy/v1beta1
{{- end }}
kind: PodDisruptionBudget
metadata:
name: azure-cloud-controller-manager
Expand Down
5 changes: 0 additions & 5 deletions addons/ccm-digitalocean/poddisruptionbudget.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{{ $version := semver .Config.Versions.Kubernetes }}
{{- if ge $version.Minor 21 }}
apiVersion: policy/v1
{{- else }}
apiVersion: policy/v1beta1
{{- end }}
kind: PodDisruptionBudget
metadata:
name: digitalocean-cloud-controller-manager
Expand Down
5 changes: 0 additions & 5 deletions addons/ccm-equinixmetal/poddisruptionbudget.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{{ $version := semver .Config.Versions.Kubernetes }}
{{- if ge $version.Minor 21 }}
apiVersion: policy/v1
{{- else }}
apiVersion: policy/v1beta1
{{- end }}
kind: PodDisruptionBudget
metadata:
name: equinixmetal-cloud-controller-manager
Expand Down
5 changes: 0 additions & 5 deletions addons/ccm-hetzner/poddisruptionbudget.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{{ $version := semver .Config.Versions.Kubernetes }}
{{- if ge $version.Minor 21 }}
apiVersion: policy/v1
{{- else }}
apiVersion: policy/v1beta1
{{- end }}
kind: PodDisruptionBudget
metadata:
name: hcloud-cloud-controller-manager
Expand Down
5 changes: 0 additions & 5 deletions addons/cluster-autoscaler/poddisruptionbudget.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{{ $version := semver .Config.Versions.Kubernetes }}
{{- if ge $version.Minor 21 }}
apiVersion: policy/v1
{{- else }}
apiVersion: policy/v1beta1
{{- end }}
kind: PodDisruptionBudget
metadata:
name: cluster-autoscaler
Expand Down
Loading

0 comments on commit 9efb5c8

Please sign in to comment.