Skip to content

[v3.32] refactor: backport repo layout-aware targets for VPP kube-test#1034

Merged
sknat merged 1 commit into
release/v3.32.0from
abasu-backport-unify-image-r332
Jun 4, 2026
Merged

[v3.32] refactor: backport repo layout-aware targets for VPP kube-test#1034
sknat merged 1 commit into
release/v3.32.0from
abasu-backport-unify-image-r332

Conversation

@aritrbas

@aritrbas aritrbas commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

This patch backports Makefile targets and kube-test manifest to release/v3.32.0.

After the unify images and flatten repo layout refactoring (#994), VPP kube-test delegates CalicoVPP repo layout details to generic make targets so it can work with both the old split-image releases (upto release/v3.32.0) as well as the new unified image releases (release/v3.33.0 onwards).

Changes:

  • Add top-level make vpp, delegating to vpp-manager
  • Add make kube-test-template, which renders the kube-test manifest with:
    • CALICOVPP_AGENT_IMAGE=calicovpp/agent
    • VPP_BUILD_REL_PATH=vpp-manager/vpp_build
  • Add make kube-test-push-images, which pulls/tags/pushes the following images:
    • calicovpp/agent
    • calicovpp/vpp
    • calicovpp/multinet-monitor
  • Add new kube-test manifest: yaml/generated/calico-vpp-kubetest.yaml
  • Update vpp-manager/Makefile so clone-vpp honors VPP_DIR

This keeps VPP kube-test independent of CalicoVPP's internal repo layout while preserving compatibility with v3.32 split-image release. We achieve a clean separation as CalicoVPP repo owns layout details whereas VPP kube-test calls generic make targets without internal knowledge of CalicoVPP repo layout.

Backport Makefile targets and kube-test manifest to `release/v3.32.0`.

After the unify images and flatten repo layout refactoring, VPP kube-test
delegates CalicoVPP repo layout details to generic make targets so it can
work with both the old split-image releases (upto `release/v3.32.0`) as
well as the new unified image releases (`release/v3.33.0` onwards).

- `make vpp` delegates to vpp-manager and passes `VPP_DIR`/`BASE`.
- `make kube-test-template` renders `yaml/generated/calico-vpp-kubetest.yaml`
  with old-layout values: `calicovpp/agent` and `vpp-manager/vpp_build`.
- `make kube-test-push-images` pulls, tags, and pushes the v3.32
  split images into the local kind registry.

Updated vpp-manager's `clone-vpp` target to honor `VPP_DIR` so top-level
`make vpp` target's override is used consistently throughout VPP build.

Also added new kube-test manifest `yaml/generated/calico-vpp-kubetest.yaml`.

This keeps VPP kube-test independent of CalicoVPP's internal repo layout
while preserving compatibility with v3.32 split-image releases.

Signed-off-by: Aritra Basu <aritrbas+gh@cisco.com>
@aritrbas aritrbas self-assigned this Jun 2, 2026
@aritrbas aritrbas requested review from hedibouattour, onong and sknat June 2, 2026 04:54
@aritrbas

aritrbas commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator Author

This PR backports the changes on release/v3.32.0 only. We need similar backports on:

  • release/v3.31.0
  • release/v3.30.0
  • release/v3.29.0

Once this PR is approved and merged, I will cherry-pick the commit on the remaining release branches.

@sknat sknat left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sknat sknat merged commit 10899b0 into release/v3.32.0 Jun 4, 2026
2 checks passed
@sknat sknat deleted the abasu-backport-unify-image-r332 branch June 4, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants