Commit b43d4a8
Fixing node events propagated to the module reconciler
Currently module reconciler is watching for events on the Node and
skips deletions, creations, generics event. On the Update event is looks
for labels' changes or that the node becomes schedulable based on the
taints. Since filter does not know the tolerations of the Modules, all
this code actually does is check if tolerations exist, then check if if
tolerations allow scheduling and then checking if there is a difference
between new and old conditions in schelabilty of those conditions, and
only in that case the module reconciler is scheduled. This means that
when the node rebooted, and the node is tainted with the taints whose
effect is notSchedule, the module reconciler will never be kicked in,
even though there is a Module has a matching toleration.
This commit changes the condition for the Module reconciler to be
scheduled: no module reconciler will be scheduled in case there is a
change in labels, or a change in taints. This means that as the node
progesses from NotReady to Ready and visa-versa, the Module reconciler
will be notified1 parent 85e0eb7 commit b43d4a8
2 files changed
+20
-87
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | | - | |
| 39 | + | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
| |||
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 51 | + | |
56 | 52 | | |
57 | 53 | | |
58 | 54 | | |
| |||
117 | 113 | | |
118 | 114 | | |
119 | 115 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | 116 | | |
129 | 117 | | |
130 | 118 | | |
| |||
195 | 183 | | |
196 | 184 | | |
197 | 185 | | |
198 | | - | |
| 186 | + | |
199 | 187 | | |
200 | 188 | | |
201 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | 86 | | |
117 | 87 | | |
118 | 88 | | |
| |||
338 | 308 | | |
339 | 309 | | |
340 | 310 | | |
341 | | - | |
342 | 311 | | |
343 | 312 | | |
344 | 313 | | |
345 | | - | |
346 | | - | |
| 314 | + | |
347 | 315 | | |
348 | 316 | | |
349 | 317 | | |
350 | 318 | | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
| 319 | + | |
356 | 320 | | |
357 | 321 | | |
358 | 322 | | |
| |||
367 | 331 | | |
368 | 332 | | |
369 | 333 | | |
370 | | - | |
| 334 | + | |
371 | 335 | | |
372 | 336 | | |
373 | 337 | | |
| |||
378 | 342 | | |
379 | 343 | | |
380 | 344 | | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | 345 | | |
403 | 346 | | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
| 347 | + | |
409 | 348 | | |
410 | 349 | | |
411 | 350 | | |
| |||
880 | 819 | | |
881 | 820 | | |
882 | 821 | | |
883 | | - | |
| 822 | + | |
884 | 823 | | |
885 | 824 | | |
886 | 825 | | |
| |||
900 | 839 | | |
901 | 840 | | |
902 | 841 | | |
903 | | - | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
904 | 845 | | |
905 | 846 | | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
906 | 852 | | |
907 | 853 | | |
908 | 854 | | |
| |||
912 | 858 | | |
913 | 859 | | |
914 | 860 | | |
915 | | - | |
| 861 | + | |
916 | 862 | | |
917 | 863 | | |
918 | 864 | | |
919 | 865 | | |
920 | 866 | | |
921 | 867 | | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | | - | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
926 | 871 | | |
927 | 872 | | |
0 commit comments