Commit 9ff5761
committed
Split CNI into watcher/handler under felix
This patch splits the CNI watcher and handlers
in two pieces. The handling will be done in the main
'felix' goroutine, while the watching / grpc server
will live under watchers/ and not store or access agent
state.
The intent is to move away from a model with multiple servers
replicating state and communicating over a pubsub. This being
prone to race conditions, deadlocks, and not providing many
benefits as scale & asynchronicity will not be a constraint
on nodes with relatively small number of pods (~100) as is k8s
default.
Signed-off-by: Nathan Skrzypczak <[email protected]>1 parent c93538b commit 9ff5761
File tree
33 files changed
+774
-721
lines changed- calico-vpp-agent
- cmd
- cni
- common
- felix
- cache
- cni
- model
- podinterface
- prometheus
- routing
- services
- tests/mocks
- testutils
- watchers
- vpp-manager
33 files changed
+774
-721
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
156 | 155 | | |
157 | 156 | | |
158 | 157 | | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | 164 | | |
166 | 165 | | |
167 | 166 | | |
| |||
224 | 223 | | |
225 | 224 | | |
226 | 225 | | |
227 | | - | |
228 | 226 | | |
229 | 227 | | |
230 | 228 | | |
| |||
238 | 236 | | |
239 | 237 | | |
240 | 238 | | |
241 | | - | |
242 | 239 | | |
243 | 240 | | |
244 | 241 | | |
| |||
0 commit comments