Skip to content

Commit

Permalink
remove use of schedulingSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelClifford committed Aug 31, 2023
1 parent ca9ca8c commit 6acbe71
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/codeflare_sdk/utils/generate_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,6 @@ def update_priority(yaml, item, workers, dispatch_priority):
worker = item.get("generictemplate").get("spec").get("workerGroupSpecs")[0]
head["template"]["spec"]["priorityClassName"] = dispatch_priority
worker["template"]["spec"]["priorityClassName"] = dispatch_priority
update_scheduling_spec(yaml, workers)


def update_scheduling_spec(yaml, workers):
spec = yaml.get("spec")
spec["schedulingSpec"] = {"minAvailable": ""}
spec["schedulingSpec"]["minAvailable"] = workers + 1


def update_custompodresources(
Expand Down

0 comments on commit 6acbe71

Please sign in to comment.