Skip to content

Commit

Permalink
Merge pull request #104782 from kerthcet/cleanup/remove-cc-v1beta1
Browse files Browse the repository at this point in the history
remove scheduler component config v1beta1
  • Loading branch information
k8s-ci-robot committed Oct 4, 2021
2 parents e597690 + 75a255d commit 04f747d
Show file tree
Hide file tree
Showing 28 changed files with 12 additions and 5,683 deletions.
3 changes: 0 additions & 3 deletions cmd/kube-scheduler/app/options/configfile.go
Expand Up @@ -27,7 +27,6 @@ import (
"k8s.io/klog/v2"
"k8s.io/kubernetes/pkg/scheduler/apis/config"
"k8s.io/kubernetes/pkg/scheduler/apis/config/scheme"
configv1beta1 "k8s.io/kubernetes/pkg/scheduler/apis/config/v1beta1"
configv1beta2 "k8s.io/kubernetes/pkg/scheduler/apis/config/v1beta2"
)

Expand Down Expand Up @@ -67,8 +66,6 @@ func encodeConfig(cfg *config.KubeSchedulerConfiguration) (*bytes.Buffer, error)

var encoder runtime.Encoder
switch cfg.TypeMeta.APIVersion {
case configv1beta1.SchemeGroupVersion.String():
encoder = scheme.Codecs.EncoderForVersion(info.Serializer, configv1beta1.SchemeGroupVersion)
case configv1beta2.SchemeGroupVersion.String():
encoder = scheme.Codecs.EncoderForVersion(info.Serializer, configv1beta2.SchemeGroupVersion)
default:
Expand Down

0 comments on commit 04f747d

Please sign in to comment.