Commit bdf5506
committed
refactor: unify images into calicovpp/vpp and flatten repo layout
- consolidate calicovpp/agent, calicovpp/vpp, calicovpp/multinet-monitor
and calicovpp/init-eks into a single unified calicovpp/vpp image.
- restructure source directories under pkg/ for cleaner organization.
- move executable entrypoints to top-level cmd/ to allow for building
all golang agents from the top-level Makefile.
- runtime behavior is unchanged - two separate daemons (agent and vpp)
run in separate containers from the same image using command overrides.
Changes:
- unified image: calicovpp/vpp (contains all binaries)
- single env var: CALICO_VPP_IMAGE (replaces CALICO_AGENT_IMAGE,
CALICO_VPP_IMAGE, MULTINET_MONITOR_IMAGE)
- unified dockerfiles: Dockerfile and Dockerfile.debug now contain all
binaries - calico-vpp-agent, felix-api-proxy, gobgp, multinet-monitor,
vpp-manager and init-eks scripts in images/ubuntu/bin/
- top-level Makefile delegates image build through vpp-manager
- vpp-manager Makefile builds all Go binaries into unified image
- image/push targets removed from agent and multinet-monitor Makefile
- manifests updated to calicovpp/vpp with explicit command overrides for
agent and multinet-monitor containers
- path references in test/ and docs/ updated for pkg/ move
- image contexts moved to top-level images/
- helper scripts moved to top-level scripts/
- VPP clone/build directory relocated to top-level vpp_build
Changes for VPP kube-test integration:
CalicoVPP now owns the kube-test manifest as a set of kustomize sources
so VPP kube-test (and any other consumer) does not need to know which
image to use, where the VPP build lives in this repo or any other
CalicoVPP-internal layout detail.
- yaml/components/kube-test/ - kustomize coimponent shared by the kind
and baremetal flavors. Defines the kube-test daemonset patch, the
kube-test configmap defaults and the tigera-operator snippet.
- yaml/components/kube-test/kind/ - KinD-flavor adjustments
(uplink eth0 via af_packet, no hugepages).
- yaml/components/kube-test/baremetal/ - baremetal-flavor adjustments
(DPDK uplink driven by ${CALICOVPP_INTERFACE}, hugepages, larger
CPU/buffer allocation, docker.io registry, IfNotPresent pull policy).
- yaml/overlays/kube-test-{kind,baremetal}/ - overlays wiring the
base daemonset and the kube-test components together.
- yaml/generated/calico-vpp-kubetest.yaml - regenerated from the
kind overlay; consumers see only the runtime placeholders
${CALICOVPP_VERSION}, ${HOME}, ${ADDITIONAL_VPP_CONFIG},
${CALICOVPP_ENABLE_MEMIF}, ${CALICO_NETWORK_CONFIG} and
${CALICOVPP_INTERFACE} (baremetal only).
- yaml/Makefile - regenerates the checked-in kubetest yaml for kind
and sanity-checks the baremetal overlay.
Top-level Makefile targets (the public API consumed by VPP kube-test):
- make vpp - delegates to pkg/vpp-manager with VPP_DIR/BASE pass-through;
consumers no longer need to know where VPP build sources live.
- make kube-test-template FLAVOR={kind,baremetal}
- runs `kubectl kustomize` on the requested overlay and appends
the tigera Installation/APIServer snippet (the snippet contains
the ${CALICO_NETWORK_CONFIG} placeholder, so it is not a
kustomize resource and is concatenated verbatim post-build).
- make kube-test-push-images
- pulls/tags/pushes each image in $KUBE_TEST_IMAGES (default:
calicovpp/vpp) into the local kind registry. Older split-image
release branches backport this target with ${KUBE_TEST_IMAGES}
as calicovpp/vpp calicovpp/agent calicovpp/multinet-monitor.
Images that remain separate: calicovpp/vclsidecar, calicovpp/ctl
Directory Restructure:
├── cmd
│ ├── api-proxy
│ ├── calico-vpp-agent
│ ├── calicovppctl
│ ├── multinet-monitor
│ ├── replay-trace
│ └── vpp-manager
├── common.mk
├── docs
├── images
├── Makefile
├── pkg
│ ├── calico-vpp-agent
│ ├── config
│ ├── multinet-monitor
│ ├── vpplink
│ └── vpp-manager
├── scripts
├── test
├── vpp_build
└── yaml
Benefits:
- Single image tag to manage across all dataplane components
- Reduced bandwidth and storage requirements
- No risk of image version drift between components
- Simplified CI/CD pipeline
- Easier version management and releases
Signed-off-by: Aritra Basu <aritrbas+gh@cisco.com>1 parent bca938e commit bdf5506
325 files changed
Lines changed: 1663 additions & 762 deletions
File tree
- calico-vpp-agent
- cmd
- api-proxy
- calico-vpp-agent
- calicovppctl
- multinet-monitor
- replay-trace
- vpp-manager
- docs
- dev
- pods
- images
- dev
- init-eks
- mock-pod
- ubuntu-build
- ubuntu
- vclsidecar
- multinet-monitor
- pkg
- calico-vpp-agent
- cni
- model
- podinterface
- common
- connectivity
- felix
- health
- network
- prometheus
- routing
- services
- tests/mocks
- calico
- testutils
- watchers
- config
- multinet-monitor
- multinettypes
- vpp-manager
- hooks
- startup
- uplink
- utils
- vpplink
- generated
- bindings
- abf
- acl_types
- acl
- af_packet
- af_xdp
- arp
- classify
- cnat
- crypto_sw_scheduler
- ethernet_types
- feature
- fib_types
- gso
- ikev2_types
- ikev2
- interface_types
- interface
- ip6_nd
- ip_neighbor
- ip_session_redirect
- ip_ttl_fixup
- ip_types
- ipip
- ipsec_types
- ipsec
- ip
- memclnt
- memif
- mfib_types
- nat44_ed
- nat_types
- npol
- pbl
- pci_types
- punt
- rdma
- session
- sr_types
- sr
- tapv2
- tunnel_types
- urpf
- virtio
- vlib
- vmxnet3
- vpe_types
- vpe
- vxlan
- wireguard
- patches
- pkg
- private_plugins
- ip_ttl_fixup
- pbl
- types
- test
- kind
- scale
- scripts
- yaml/mvpp
- yaml
- base
- components
- kube-test
- baremetal
- kind
- multinet
- vagrant-mounts
- generated
- overlays
- dev
- kube-test-baremetal
- kube-test-kind
- platforms/openshift
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
32 | | - | |
| 32 | + | |
| 33 | + | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 14 | + | |
19 | 15 | | |
20 | 16 | | |
21 | 17 | | |
22 | 18 | | |
23 | | - | |
| 19 | + | |
24 | 20 | | |
25 | 21 | | |
26 | 22 | | |
27 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
28 | 72 | | |
29 | 73 | | |
30 | 74 | | |
| |||
46 | 90 | | |
47 | 91 | | |
48 | 92 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 93 | + | |
52 | 94 | | |
53 | 95 | | |
54 | 96 | | |
55 | 97 | | |
56 | | - | |
57 | | - | |
58 | | - | |
| 98 | + | |
59 | 99 | | |
60 | 100 | | |
61 | 101 | | |
62 | | - | |
| 102 | + | |
63 | 103 | | |
64 | 104 | | |
65 | 105 | | |
66 | | - | |
| 106 | + | |
67 | 107 | | |
68 | 108 | | |
69 | 109 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
75 | 113 | | |
76 | 114 | | |
77 | 115 | | |
| |||
111 | 149 | | |
112 | 150 | | |
113 | 151 | | |
114 | | - | |
115 | 152 | | |
116 | | - | |
117 | 153 | | |
118 | 154 | | |
119 | 155 | | |
| |||
216 | 252 | | |
217 | 253 | | |
218 | 254 | | |
219 | | - | |
| 255 | + | |
220 | 256 | | |
221 | | - | |
| 257 | + | |
222 | 258 | | |
223 | 259 | | |
224 | 260 | | |
| |||
231 | 267 | | |
232 | 268 | | |
233 | 269 | | |
234 | | - | |
| 270 | + | |
235 | 271 | | |
236 | 272 | | |
237 | 273 | | |
238 | 274 | | |
239 | | - | |
240 | | - | |
| 275 | + | |
| 276 | + | |
241 | 277 | | |
242 | 278 | | |
243 | 279 | | |
| |||
316 | 352 | | |
317 | 353 | | |
318 | 354 | | |
319 | | - | |
| 355 | + | |
320 | 356 | | |
321 | 357 | | |
322 | 358 | | |
323 | 359 | | |
324 | 360 | | |
325 | 361 | | |
326 | | - | |
| 362 | + | |
327 | 363 | | |
328 | 364 | | |
329 | 365 | | |
| |||
374 | 410 | | |
375 | 411 | | |
376 | 412 | | |
377 | | - | |
378 | | - | |
| 413 | + | |
| 414 | + | |
379 | 415 | | |
380 | 416 | | |
381 | 417 | | |
| |||
393 | 429 | | |
394 | 430 | | |
395 | 431 | | |
396 | | - | |
397 | | - | |
| 432 | + | |
| 433 | + | |
398 | 434 | | |
399 | 435 | | |
400 | 436 | | |
| |||
428 | 464 | | |
429 | 465 | | |
430 | 466 | | |
431 | | - | |
| |||
This file was deleted.
This file was deleted.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
File renamed without changes.
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments