Remove support for Weave as of k8s 1.23

This commit is contained in:
John Gardiner Myers 2021-12-11 17:49:24 -08:00
parent c2292c9129
commit dce8c32fd7
4 changed files with 8 additions and 2 deletions

View File

@ -25,7 +25,7 @@ The following table provides the support status for various networking providers
| Kubenet | 1.5 | 1.5 | - | - |
| Lyft VPC | 1.11 | - | 1.22 | 1.23 |
| Romana | 1.8 | - | 1.18 | 1.19 |
| Weave | 1.5 | - | - | - |
| Weave | 1.5 | - | 1.23 | Kubernetes 1.23 |
### Which networking provider should you use?

View File

@ -1,5 +1,7 @@
### Weave
⚠ The Weave CNI is not supported for Kubernetes 1.23 or later.
#### Installation
To use the Weave, specify the following in the cluster spec.

View File

@ -17,6 +17,8 @@ being used, then Kubernetes Node resources will be named after their AWS instanc
* Support for the Lyft CNI has been removed.
* The Weave CNI is not supported for Kubernetes 1.23 or later.
* Support for CentOS 7 has been removed.
* Support for CentOS 8 has been removed.

View File

@ -718,7 +718,9 @@ func validateNetworking(cluster *kops.Cluster, v *kops.NetworkingSpec, fldPath *
}
optionTaken = true
if cluster.Spec.IsIPv6Only() {
if cluster.IsKubernetesGTE("1.23") {
allErrs = append(allErrs, field.Forbidden(fldPath.Child("weave"), "Weave is not supported for Kubernetes >= 1.23"))
} else if cluster.Spec.IsIPv6Only() {
allErrs = append(allErrs, field.Forbidden(fldPath.Child("weave"), "Weave does not support IPv6"))
}
}