mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Deprecate kubescheduler ComponentConfig v1beta2
Signed-off-by: kerthcet <kerthcet@gmail.com>
This commit is contained in:
parent
3ffdfbe286
commit
c8fbd78c16
@ -51,6 +51,9 @@ 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.Warning("KubeSchedulerConfiguration v1beta2 is deprecated in v1.25, will be removed in v1.26")
|
||||
}
|
||||
return cfgObj, nil
|
||||
}
|
||||
return nil, fmt.Errorf("couldn't decode as KubeSchedulerConfiguration, got %s: ", gvk)
|
||||
|
Loading…
Reference in New Issue
Block a user