Commit ad6e33a
authored
fix: let NNCResonciler process update events with different generations when IPAMv2 is enabled (#3279)
* fix: let NNCReconciler process every update when IPAMv2 is enabled
* refactor: cleanup PredicateFunc usage
Group the predicate funcs into either
specific event filters or the "universal"
filters which get applied to every event
type. Then And() them which is what
controller-runtime event_handler is
functionally doing anyway.
link: https://github.com/kubernetes-sigs/controller-runtime/blob/aea2e32a936584b06ae6f7992f856fe7292b0297/pkg/internal/source/event_handler.go#L116
* revert: "refactor: cleanup PredicateFunc usage"
This reverts commit 67983d0.
* chore: reduce refactoring
* chore: just pass bool1 parent 4773840 commit ad6e33a
File tree
2 files changed
+17
-12
lines changed- cns
- kubecontroller/nodenetworkconfig
- service
2 files changed
+17
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
| |||
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | 171 | | |
177 | 172 | | |
178 | 173 | | |
179 | 174 | | |
180 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
181 | 179 | | |
182 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1032 | 1032 | | |
1033 | 1033 | | |
1034 | 1034 | | |
1035 | | - | |
| 1035 | + | |
1036 | 1036 | | |
1037 | 1037 | | |
1038 | 1038 | | |
| |||
1548 | 1548 | | |
1549 | 1549 | | |
1550 | 1550 | | |
1551 | | - | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
1552 | 1555 | | |
1553 | 1556 | | |
1554 | 1557 | | |
| |||
1618 | 1621 | | |
1619 | 1622 | | |
1620 | 1623 | | |
1621 | | - | |
| 1624 | + | |
1622 | 1625 | | |
1623 | 1626 | | |
1624 | 1627 | | |
| |||
0 commit comments