-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 56579, 55236, 56512, 56549, 56538). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. #50598: Added more test cases for nodeShouldRunDaemonPod **What this PR does / why we need it**: Covered more predicates for `nodeShouldRunDaemonPod` test **Which issue(s) this PR fixes**: Fixes #50598 **Special notes for your reviewer**: I've introduced `predicateName` parameter in order to easier determine what is covered. Currently we have: - ShouldRunDaemonPod - InsufficientResourceError - ErrPodNotMatchHostName - ErrPodNotFitsHostPorts - ErrNodeSelectorNotMatch TODO: - ErrDiskConflict - ErrPodAffinityNotMatch - ErrTaintsTolerationsNotMatch for more predicates take a look at [predicates/errors.go](https://github.com/kubernetes/kubernetes/blob/58fd063a6cfee1854cb64c0c45f808d7d2cc5fea/plugin/pkg/scheduler/algorithm/predicates/error.go#L25)