• Kubernetes Submit Queue's avatar
    Merge pull request #50595 from k82cn/k8s_50594 · 9e69d5b8
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 49850, 47782, 50595, 50730, 51341)
    
    NodeConditionPredicates should return NodeOutOfDisk error.
    
    **What this PR does / why we need it**:
    In https://github.com/kubernetes/kubernetes/pull/49932 , I moved node condition check into a predicates; but it return incorrect error :(. 
    
    We also need to add more cases to `TestNodeShouldRunDaemonPod` which is key function of DaemonSet.
    
    **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #50594 
    
    **Release note**:
    
    ```release-note
    None
    ```
    9e69d5b8
daemon_controller.go 50.4 KB