Skip to content

Commit

Permalink
Merge pull request kubernetes#111547 from kerthcet/feat/mark-cc-v1bet…
Browse files Browse the repository at this point in the history
…a2-deprecated

Deprecate kubescheduler ComponentConfig v1beta2
  • Loading branch information
k8s-ci-robot committed Aug 2, 2022
2 parents d4c7542 + c8fbd78 commit 96439a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/kube-scheduler/app/options/configfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,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)
Expand Down

0 comments on commit 96439a0

Please sign in to comment.