Skip to content

Commit

Permalink
Merge pull request #9204 from hakman/kubescheduler.config-v1beta1
Browse files Browse the repository at this point in the history
Use kubescheduler.config.k8s.io/v1beta1 for Kubernetes 1.19
  • Loading branch information
k8s-ci-robot authored May 29, 2020
2 parents 2a613f1 + cb65424 commit 0196c8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nodeup/pkg/model/kube_scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ func (b *KubeSchedulerBuilder) Build(c *fi.ModelBuilderContext) error {
}
if useConfigFile {
var config *SchedulerConfig
if b.IsKubernetesGTE("1.18") {
if b.IsKubernetesGTE("1.19") {
config = NewSchedulerConfig("kubescheduler.config.k8s.io/v1beta1")
} else if b.IsKubernetesGTE("1.18") {
config = NewSchedulerConfig("kubescheduler.config.k8s.io/v1alpha2")
} else {
config = NewSchedulerConfig("kubescheduler.config.k8s.io/v1alpha1")
Expand Down

0 comments on commit 0196c8c

Please sign in to comment.