mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 23:19:26 +00:00
kubeadm: mark v1beta2 as deprecated
This commit is contained in:
@@ -69,7 +69,9 @@ func validateSupportedVersion(gv schema.GroupVersion, allowDeprecated bool) erro
|
||||
}
|
||||
|
||||
// Deprecated API versions are supported by us, but can only be used for migration.
|
||||
deprecatedAPIVersions := map[string]struct{}{}
|
||||
deprecatedAPIVersions := map[string]struct{}{
|
||||
"kubeadm.k8s.io/v1beta2": {},
|
||||
}
|
||||
|
||||
gvString := gv.String()
|
||||
|
||||
|
@@ -73,6 +73,7 @@ func TestValidateSupportedVersion(t *testing.T) {
|
||||
Group: KubeadmGroupName,
|
||||
Version: "v1beta2",
|
||||
},
|
||||
allowDeprecated: true,
|
||||
},
|
||||
{
|
||||
gv: schema.GroupVersion{
|
||||
|
Reference in New Issue
Block a user