kubeadm: mark v1beta2 as deprecated

This commit is contained in:
Paco Xu
2021-12-14 16:57:56 +08:00
parent 93d858c46e
commit 703f2a7b86
3 changed files with 6 additions and 1 deletions

View File

@@ -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()

View File

@@ -73,6 +73,7 @@ func TestValidateSupportedVersion(t *testing.T) {
Group: KubeadmGroupName,
Version: "v1beta2",
},
allowDeprecated: true,
},
{
gv: schema.GroupVersion{