Skip to content

Commit

Permalink
Merge pull request #12486 from hakman/update_scheduler_config
Browse files Browse the repository at this point in the history
Add kubescheduler.config.k8s.io/v1beta2 for k8s 1.22+
  • Loading branch information
k8s-ci-robot committed Oct 5, 2021
2 parents cd4c475 + 71a0bcf commit 76415da
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 @@ -104,7 +104,9 @@ func (b *KubeSchedulerBuilder) Build(c *fi.ModelBuilderContext) error {
}
{
var config *SchedulerConfig
if b.IsKubernetesGTE("1.19") {
if b.IsKubernetesGTE("1.22") {
config = NewSchedulerConfig("kubescheduler.config.k8s.io/v1beta2")
} else if b.IsKubernetesGTE("1.19") {
config = NewSchedulerConfig("kubescheduler.config.k8s.io/v1beta1")
} else {
config = NewSchedulerConfig("kubescheduler.config.k8s.io/v1alpha2")
Expand Down

0 comments on commit 76415da

Please sign in to comment.