Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gu <[email protected]>
  • Loading branch information
tylergu committed Nov 12, 2023
1 parent 28cc2a7 commit 096c221
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions performance_measurement/check_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def check_tolerations(
return sts_object["spec"]["template"]["spec"]["tolerations"] is None
toleration_matched = True
for toleration in desired_tolerations:
if sts_object["spec"]["template"]["spec"]["tolerations"] is None:
toleration_matched = False
break
for toleration_in_sts in sts_object["spec"]["template"]["spec"]["tolerations"]:
if (("effect" not in toleration or toleration["effect"] == toleration_in_sts["effect"])
and ("key" not in toleration or toleration["key"] == toleration_in_sts["key"])
Expand Down

0 comments on commit 096c221

Please sign in to comment.