Skip to content

Commit

Permalink
Increase the minimum supported Kubernetes version to v1.19 (#6089)
Browse files Browse the repository at this point in the history
Starting in v1.19, a CustomResourceDefinition can indicate a particular
version of the resource it defines is deprecated. See:
https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definition-versioning/#version-deprecation

This will be useful in the future when we want to deprecated CRD versions.

Signed-off-by: hjiajing <[email protected]>
  • Loading branch information
hjiajing authored Apr 24, 2024
1 parent 27424c3 commit 42e7cfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Network Policies in a very efficient manner.

## Prerequisites

Antrea has been tested with Kubernetes clusters running version 1.16 or later.
Antrea has been tested with Kubernetes clusters running version 1.19 or later.

* `NodeIPAMController` must be enabled in the Kubernetes cluster.\
When deploying a cluster with kubeadm the `--pod-network-cidr <cidr>`
Expand Down
1 change: 1 addition & 0 deletions pkg/apiserver/handlers/webhook/convert_crd.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func statusSucceed() metav1.Status {

// doConversionV1beta1 converts the requested objects in the v1beta1 ConversionRequest using the given conversion function and
// returns a conversion response. Failures are reported with the Reason in the conversion response.
// Deprecated: apiextensions/v1beta1 is deprecated, use apiextensions/v1 instead
func doConversionV1beta1(convertRequest *v1beta1.ConversionRequest, convert convertFunc) *v1beta1.ConversionResponse {
var convertedObjects []runtime.RawExtension
for _, obj := range convertRequest.Objects {
Expand Down

0 comments on commit 42e7cfa

Please sign in to comment.