• Kubernetes Submit Queue's avatar
    Merge pull request #30141 from sttts/sttts-affinity-logic · eb52d55d
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    e2e flake: real fix of PodAntiAffinity test
    
    The fix in PR https://github.com/kubernetes/kubernetes/pull/30135 was wrong in using a wrong test condition for an already broken test.
    
    ### Summary
    
    The test tries to launch a pod with an anti-affinity annotation, waits 10
    seconds and then checks that it is still pending.
    
    But the anti-affinity annotation does not forbid to launch that pod on just
    another node that does not have the zone label at all.
    
    This commit changes this behavior by labeling two nodes with the zone label
    and then forcing the pod to be launched on one of those two nodes.
    
    **I assume here that a non-existing label is considered as a different label value.**
    
      Fixes #30078
    eb52d55d
Name
Last commit
Last update
..
component/scheduler/perf Loading commit data...
e2e Loading commit data...
e2e_node Loading commit data...
fixtures/pkg/kubectl/cmd Loading commit data...
images Loading commit data...
integration Loading commit data...
kubemark Loading commit data...
soak Loading commit data...
utils Loading commit data...
.gitattributes Loading commit data...
OWNERS Loading commit data...
test_owners.csv Loading commit data...