• Ivan Shvedunov's avatar
    Fix DaemonSet namespace handling for predicates · 5651f822
    Ivan Shvedunov authored
    In order to determine whether a node should run its daemon pod,
    DaemonController creates a dummy pod based on DaemonSet's template and
    then uses scheduler predicates (currently GeneralPredicates) to test
    whether such pod can be run by the node. The problem was that
    DaemonController was not setting Namespace for the dummy pod. This was
    not affecting currently used GeneralPredicates but this problem could
    bite later when some namespace-dependent predicates are added to
    GeneralPredicates or directly to DaemonController's node checks
    (e.g. pod affinity).
    
    Stumbled upon it while working on e2e test for #31136
    5651f822
Name
Last commit
Last update
..
daemoncontroller.go Loading commit data...
daemoncontroller_test.go Loading commit data...
doc.go Loading commit data...