mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
Merge pull request #112257 from kerthcet/cleanup/modify-remove-release
Kube-scheduler: Deprecate Component config v1beta3
This commit is contained in:
commit
3d3820bba3
@ -52,8 +52,11 @@ func loadConfig(data []byte) (*config.KubeSchedulerConfiguration, error) {
|
||||
// conversion. See KubeSchedulerConfiguration internal type definition for
|
||||
// more details.
|
||||
cfgObj.TypeMeta.APIVersion = gvk.GroupVersion().String()
|
||||
if cfgObj.TypeMeta.APIVersion == configv1beta2.SchemeGroupVersion.String() {
|
||||
klog.InfoS("KubeSchedulerConfiguration v1beta2 is deprecated in v1.25, will be removed in v1.26")
|
||||
switch cfgObj.TypeMeta.APIVersion {
|
||||
case configv1beta2.SchemeGroupVersion.String():
|
||||
klog.InfoS("KubeSchedulerConfiguration v1beta2 is deprecated in v1.25, will be removed in v1.28")
|
||||
case configv1beta3.SchemeGroupVersion.String():
|
||||
klog.InfoS("KubeSchedulerConfiguration v1beta3 is deprecated in v1.26, will be removed in v1.29")
|
||||
}
|
||||
return cfgObj, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user