From d170cc28008d376bd3e575e77e8ee4e9e6fdb1c9 Mon Sep 17 00:00:00 2001 From: rafalw82 Date: Fri, 12 Jan 2024 11:37:42 +0100 Subject: [PATCH] [Issue-1065] fixing patcher Signed-off-by: rafalw82 --- pkg/scheduler/patcher/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/scheduler/patcher/main.py b/pkg/scheduler/patcher/main.py index 09f87a980..ea17cffca 100644 --- a/pkg/scheduler/patcher/main.py +++ b/pkg/scheduler/patcher/main.py @@ -109,7 +109,9 @@ def run(): if kube_major_ver==1 and kube_minor_ver>22: path = args.target_config_23_path - config_unschedulable_pods = (kube_major_ver==1 and kube_minor_ver>23 and kube_minor_ver<26) + # the option is still available for kubernetes 1.26, 1.27, 1.28, 1.29 + # verify if the option is still available for kubernetes greater than 1.29 + config_unschedulable_pods = (kube_major_ver==1 and kube_minor_ver>23 and kube_minor_ver<=29) manifest = "/etc/kubernetes/manifests/kube-scheduler.yaml" if args.platform == "rke":