diff --git a/src/codeflare_sdk/templates/base-template.yaml b/src/codeflare_sdk/templates/base-template.yaml index 386dd86bf..56014a068 100644 --- a/src/codeflare_sdk/templates/base-template.yaml +++ b/src/codeflare_sdk/templates/base-template.yaml @@ -8,8 +8,6 @@ metadata: orderedinstance: "m4.xlarge_g4dn.xlarge" spec: priority: 9 - schedulingSpec: - minAvailable: 3 resources: Items: [] GenericItems: diff --git a/src/codeflare_sdk/utils/generate_yaml.py b/src/codeflare_sdk/utils/generate_yaml.py index 697122a2c..ef343a29a 100755 --- a/src/codeflare_sdk/utils/generate_yaml.py +++ b/src/codeflare_sdk/utils/generate_yaml.py @@ -183,11 +183,6 @@ def update_resources(spec, min_cpu, max_cpu, min_memory, max_memory, gpu): limits["nvidia.com/gpu"] = gpu -def update_scheduling_spec(yaml, workers): - spec = yaml.get("spec") - spec["schedulingSpec"]["minAvailable"] = workers + 1 - - def update_nodes( item, appwrapper_name, @@ -369,7 +364,6 @@ def generate_appwrapper( update_names(user_yaml, item, appwrapper_name, cluster_name, namespace) update_labels(user_yaml, instascale, instance_types) update_priority(item, dispatch_priority) - update_scheduling_spec(user_yaml, workers) update_custompodresources( item, min_cpu, max_cpu, min_memory, max_memory, gpu, workers ) diff --git a/tests/test-case.yaml b/tests/test-case.yaml index df88e7bb0..cbfb998e9 100644 --- a/tests/test-case.yaml +++ b/tests/test-case.yaml @@ -195,5 +195,3 @@ spec: name: unit-test-cluster-head-svc replicas: 1 Items: [] - schedulingSpec: - minAvailable: 3