mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
kubeadm: mark v1beta2 as deprecated
This commit is contained in:
parent
93d858c46e
commit
703f2a7b86
@ -19,6 +19,8 @@ limitations under the License.
|
||||
// +k8s:deepcopy-gen=package
|
||||
// +k8s:conversion-gen=k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm
|
||||
|
||||
// Package v1beta2 has been DEPRECATED by v1beta3
|
||||
//
|
||||
// Package v1beta2 defines the v1beta2 version of the kubeadm configuration file format.
|
||||
// This version improves on the v1beta1 format by fixing some minor issues and adding a few new fields.
|
||||
//
|
||||
|
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user