k3s/pkg/controller/daemon
Ivan Shvedunov 5651f822fd Fix DaemonSet namespace handling for predicates
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
2016-09-26 22:14:28 +03:00
..
daemoncontroller.go Fix DaemonSet namespace handling for predicates 2016-09-26 22:14:28 +03:00
daemoncontroller_test.go Merge pull request #32877 from deads2k/client-09-fixup-lister 2016-09-16 22:39:37 -07:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00