Bump min Kubernetes API to v1.22 (#11737)

New versions of the k8s-openapi crate drop support for Kubernetes 1.21.
Kubernetes v1.22 has been considered EOL by the upstream project since
2022-07-08. Major cloud providers have EOL'd it as well (GKE's current
MSKV is 1.24).

This change updates the MSKV to v1.22. It also updates the max version
in _test-helpers.sh to v1.28.
This commit is contained in:
Oliver Gould 2023-12-11 12:15:56 -08:00 committed by GitHub
parent c453163fb5
commit 5f100b3195
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with 40 additions and 40 deletions

View File

@ -171,7 +171,7 @@ jobs:
strategy:
matrix:
k8s:
- v1.21
- v1.22
- v1.28
steps:
- uses: extractions/setup-just@69d82fb0233557aec017ef13706851d0694e0f1d
@ -350,7 +350,7 @@ jobs:
strategy:
matrix:
k8s:
- v1.21
- v1.22
- v1.28
steps:
- uses: extractions/setup-just@69d82fb0233557aec017ef13706851d0694e0f1d

View File

@ -4,8 +4,8 @@
# proper messages
set +e
k8s_version_min='+v1.21'
k8s_version_max='+v1.26'
k8s_version_min='+v1.22'
k8s_version_max='+v1.28'
bindir=$( cd "${BASH_SOURCE[0]%/*}" && pwd )
testdir="$bindir"/../test/integration

View File

@ -8,7 +8,7 @@ type: application
home: https://linkerd.io
keywords:
- service-mesh
kubeVersion: ">=1.21.0-0"
kubeVersion: ">=1.22.0-0"
name: "linkerd-control-plane"
sources:
- https://github.com/linkerd/linkerd2/

View File

@ -11,8 +11,8 @@ for your microservices — with no code change required.
## Quickstart and documentation
You can run Linkerd on any Kubernetes 1.21+ cluster in a matter of seconds. See
the [Linkerd Getting Started Guide][getting-started] for how.
You can run Linkerd on any Kubernetes cluster in a matter of seconds. See the
[Linkerd Getting Started Guide][getting-started] for how.
For more comprehensive documentation, start with the [Linkerd
docs][linkerd-docs].
@ -135,7 +135,7 @@ extensions:
## Requirements
Kubernetes: `>=1.21.0-0`
Kubernetes: `>=1.22.0-0`
| Repository | Name | Version |
|------------|------|---------|

View File

@ -9,8 +9,8 @@
## Quickstart and documentation
You can run Linkerd on any Kubernetes 1.21+ cluster in a matter of seconds. See
the [Linkerd Getting Started Guide][getting-started] for how.
You can run Linkerd on any Kubernetes cluster in a matter of seconds. See the
[Linkerd Getting Started Guide][getting-started] for how.
For more comprehensive documentation, start with the [Linkerd
docs][linkerd-docs].

View File

@ -6,7 +6,7 @@ type: application
home: https://linkerd.io
keywords:
- service-mesh
kubeVersion: ">=1.21.0-0"
kubeVersion: ">=1.22.0-0"
name: "linkerd-crds"
sources:
- https://github.com/linkerd/linkerd2/

View File

@ -10,8 +10,8 @@ for your microservices — with no code change required.
## Quickstart and documentation
You can run Linkerd on any Kubernetes 1.21+ cluster in a matter of seconds. See
the [Linkerd Getting Started Guide][getting-started] for how.
You can run Linkerd on any Kubernetes cluster in a matter of seconds. See the
[Linkerd Getting Started Guide][getting-started] for how.
For more comprehensive documentation, start with the [Linkerd
docs][linkerd-docs].
@ -60,7 +60,7 @@ helm install linkerd-crds -n linkerd --create-namespace linkerd/linkerd-crds
## Requirements
Kubernetes: `>=1.21.0-0`
Kubernetes: `>=1.22.0-0`
| Repository | Name | Version |
|------------|------|---------|

View File

@ -9,8 +9,8 @@
## Quickstart and documentation
You can run Linkerd on any Kubernetes 1.21+ cluster in a matter of seconds. See
the [Linkerd Getting Started Guide][getting-started] for how.
You can run Linkerd on any Kubernetes cluster in a matter of seconds. See the
[Linkerd Getting Started Guide][getting-started] for how.
For more comprehensive documentation, start with the [Linkerd
docs][linkerd-docs].

View File

@ -6,7 +6,7 @@ description: |
Linkerd [CNI plugin](https://linkerd.io/2/features/cni/) takes care of setting
up your pod's network so incoming and outgoing traffic is proxied through the
data plane.
kubeVersion: ">=1.21.0-0"
kubeVersion: ">=1.22.0-0"
icon: https://linkerd.io/images/logo-only-200h.png
name: "linkerd2-cni"
version: 30.13.1-edge

View File

@ -12,7 +12,7 @@ data plane.
## Requirements
Kubernetes: `>=1.21.0-0`
Kubernetes: `>=1.22.0-0`
| Repository | Name | Version |
|------------|------|---------|

View File

@ -7,7 +7,7 @@ description: |
home: https://linkerd.io
keywords:
- service-mesh
kubeVersion: ">=1.21.0-0"
kubeVersion: ">=1.22.0-0"
name: linkerd-jaeger
sources:
- https://github.com/linkerd/linkerd2/

View File

@ -11,7 +11,7 @@ OpenCensus and Jaeger.
## Quickstart and documentation
You can run Linkerd on any Kubernetes 1.21+ cluster in a matter of seconds. See
You can run Linkerd on any Kubernetes cluster in a matter of seconds. See
the [Linkerd Getting Started Guide][getting-started] for how.
For more comprehensive documentation, start with the [Linkerd
@ -62,7 +62,7 @@ helm install linkerd-jaeger -n linkerd-jaeger --create-namespace linkerd/linkerd
## Requirements
Kubernetes: `>=1.21.0-0`
Kubernetes: `>=1.22.0-0`
| Repository | Name | Version |
|------------|------|---------|

View File

@ -9,7 +9,7 @@
## Quickstart and documentation
You can run Linkerd on any Kubernetes 1.21+ cluster in a matter of seconds. See
You can run Linkerd on any Kubernetes cluster in a matter of seconds. See
the [Linkerd Getting Started Guide][getting-started] for how.
For more comprehensive documentation, start with the [Linkerd

View File

@ -9,7 +9,7 @@ description: |
`cluster-credentials` secret and the Link CR, which are not found in this
chart. Therefore this chart is not a replacement for that command, and
shouldn't be used as-is unless you really know what you're doing ;-)
kubeVersion: ">=1.21.0-0"
kubeVersion: ">=1.22.0-0"
icon: https://linkerd.io/images/logo-only-200h.png
name: "linkerd-multicluster-link"
version: 0.2.0

View File

@ -15,7 +15,7 @@ shouldn't be used as-is unless you really know what you're doing ;-)
## Requirements
Kubernetes: `>=1.21.0-0`
Kubernetes: `>=1.22.0-0`
| Repository | Name | Version |
|------------|------|---------|

View File

@ -7,7 +7,7 @@ description: |
home: https://linkerd.io
keywords:
- service-mesh
kubeVersion: ">=1.21.0-0"
kubeVersion: ">=1.22.0-0"
name: "linkerd-multicluster"
sources:
- https://github.com/linkerd/linkerd2/

View File

@ -11,8 +11,8 @@ linking to remote clusters
## Quickstart and documentation
You can run Linkerd on any Kubernetes 1.21+ cluster in a matter of seconds. See
the [Linkerd Getting Started Guide][getting-started] for how.
You can run Linkerd on any Kubernetes cluster in a matter of seconds. See the
[Linkerd Getting Started Guide][getting-started] for how.
For more comprehensive documentation, start with the [Linkerd
docs][linkerd-docs].
@ -60,7 +60,7 @@ helm install linkerd-multicluster -n linkerd-multicluster --create-namespace lin
## Requirements
Kubernetes: `>=1.21.0-0`
Kubernetes: `>=1.22.0-0`
| Repository | Name | Version |
|------------|------|---------|

View File

@ -9,8 +9,8 @@
## Quickstart and documentation
You can run Linkerd on any Kubernetes 1.21+ cluster in a matter of seconds. See
the [Linkerd Getting Started Guide][getting-started] for how.
You can run Linkerd on any Kubernetes cluster in a matter of seconds. See the
[Linkerd Getting Started Guide][getting-started] for how.
For more comprehensive documentation, start with the [Linkerd
docs][linkerd-docs].

View File

@ -27,7 +27,7 @@ import (
_ "k8s.io/client-go/plugin/pkg/client/auth"
)
var minAPIVersion = [3]int{1, 21, 0}
var minAPIVersion = [3]int{1, 22, 0}
// KubernetesAPI provides a client for accessing a Kubernetes cluster.
// TODO: support ServiceProfile ClientSet. A prerequisite is moving the

View File

@ -18,7 +18,7 @@ async-trait = "0.1"
drain = "0.1"
futures = { version = "0.3", default-features = false }
k8s-gateway-api = "0.13"
k8s-openapi = { version = "0.19", features = ["v1_20"] }
k8s-openapi = { version = "0.19", features = ["v1_22"] }
hyper = { version = "0.14", features = ["http1", "http2", "runtime", "server"] }
ipnet = { version = "2", default-features = false }
linkerd-policy-controller-core = { path = "./core" }

View File

@ -7,7 +7,7 @@ publish = false
[dependencies]
k8s-openapi = { version = "0.19", default-features = false, features = [
"v1_20",
"v1_22",
] }
k8s-gateway-api = "0.13"
kube = { version = "0.85", default-features = false, features = [

View File

@ -11,7 +11,7 @@ hyper = { version = "0.14", features = ["client", "http2"] }
futures = { version = "0.3", default-features = false }
ipnet = "2"
k8s-gateway-api = "0.13"
k8s-openapi = { version = "0.19", features = ["v1_20"] }
k8s-openapi = { version = "0.19", features = ["v1_22"] }
linkerd-policy-controller-core = { path = "../policy-controller/core" }
linkerd-policy-controller-k8s-api = { path = "../policy-controller/k8s/api" }
maplit = "1"

View File

@ -7,7 +7,7 @@ description: |
home: https://linkerd.io
keywords:
- service-mesh
kubeVersion: ">=1.21.0-0"
kubeVersion: ">=1.22.0-0"
name: "linkerd-viz"
sources:
- https://github.com/linkerd/linkerd2/

View File

@ -11,8 +11,8 @@ components for Linkerd.
## Quickstart and documentation
You can run Linkerd on any Kubernetes 1.21+ cluster in a matter of seconds. See
the [Linkerd Getting Started Guide][getting-started] for how.
You can run Linkerd on any Kubernetes cluster in a matter of seconds. See the
[Linkerd Getting Started Guide][getting-started] for how.
For more comprehensive documentation, start with the [Linkerd
docs][linkerd-docs].
@ -60,7 +60,7 @@ helm install linkerd-viz -n linkerd-viz --create-namespace linkerd/linkerd-viz
## Requirements
Kubernetes: `>=1.21.0-0`
Kubernetes: `>=1.22.0-0`
| Repository | Name | Version |
|------------|------|---------|

View File

@ -9,8 +9,8 @@
## Quickstart and documentation
You can run Linkerd on any Kubernetes 1.21+ cluster in a matter of seconds. See
the [Linkerd Getting Started Guide][getting-started] for how.
You can run Linkerd on any Kubernetes cluster in a matter of seconds. See the
[Linkerd Getting Started Guide][getting-started] for how.
For more comprehensive documentation, start with the [Linkerd
docs][linkerd-docs].