Skip to content

Commit

Permalink
[issue-1227] extending scheduler patcher for kubernetes 1.31 and above
Browse files Browse the repository at this point in the history
  • Loading branch information
katarzynakulpa committed Sep 25, 2024
1 parent f835144 commit c347db2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/scheduler/patcher/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ def run():
path = args.target_config_29_path

log.info(f"Applying scheduler config: {path}")
# the option is still available for kubernetes 1.26, 1.27, 1.28, 1.29, 1.30
# verify if the option is still available for kubernetes greater than 1.30
# the option is still available for kubernetes 1.26, 1.27, 1.28, 1.29, 1.30, 1.31 and above
# verify if the option is still available for kubernetes greater than 1.31
# https://github.com/kubernetes/kubernetes/blob/c78812868f5f7a9c56c85f2e5c8b41265f3c1ce3/CHANGELOG/CHANGELOG-1.30.md?plain=1#L716
# https://github.com/kubernetes/kubernetes/issues/110175
config_unschedulable_pods = (kube_major_ver==1 and kube_minor_ver>23 and kube_minor_ver<=30)
config_unschedulable_pods = (kube_major_ver==1 and kube_minor_ver>23)

manifest = "/etc/kubernetes/manifests/kube-scheduler.yaml"
if args.platform == "rke":
Expand Down

0 comments on commit c347db2

Please sign in to comment.