Make daemon.NodeShouldRunDaemonPod function public

This commit is contained in:
Bartłomiej Wróblewski
2022-03-03 11:17:01 +00:00
parent 428ec843a5
commit b2e2fb8d89
4 changed files with 14 additions and 20 deletions

View File

@@ -528,7 +528,7 @@ func (dsc *DaemonSetsController) updatedDesiredNodeCounts(ds *apps.DaemonSet, no
var desiredNumberScheduled int
for i := range nodeList {
node := nodeList[i]
wantToRun, _ := dsc.nodeShouldRunDaemonPod(node, ds)
wantToRun, _ := NodeShouldRunDaemonPod(node, ds)
if !wantToRun {
continue
}