File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ def get_affinity(self):
179179 client .V1PreferredSchedulingTerm (
180180 weight = 100 ,
181181 preference = client .V1NodeSelectorTerm (
182- match_fields = [
182+ match_expressions = [
183183 client .V1NodeSelectorRequirement (
184184 key = "kubernetes.io/hostname" ,
185185 operator = "In" ,
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ def test_sticky_builds_affinity():
102102 assert affinity .pod_anti_affinity is None
103103
104104 # One of the two nodes we have in our mock should be the preferred node
105- assert affinity .node_affinity .preferred_during_scheduling_ignored_during_execution [0 ].preference .match_fields [0 ].values [0 ] in ("node-a" , "node-b" )
105+ assert affinity .node_affinity .preferred_during_scheduling_ignored_during_execution [0 ].preference .match_expressions [0 ].values [0 ] in ("node-a" , "node-b" )
106106
107107
108108def test_git_credentials_passed_to_podspec_upon_submit ():
You can’t perform that action at this time.
0 commit comments