fix: Include CNI telemetry sidecar in release archives#4346
fix: Include CNI telemetry sidecar in release archives#4346behzad-mir merged 1 commit intomasterfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Includes the azure-cni-telemetry-sidecar binary in the ACN CNI release archives so published GitHub release artifacts align with what’s shipped in the CNI container image.
Changes:
- Added a Makefile target to build
azure-cni-telemetry-sidecar. - Updated CNI archive packaging to include the sidecar binary across the base and variant CNI archives (transparent-vlan, swift, overlay, overlay dualstack).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ef0d4e6 to
d55424e
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@copilot I want you to also look at the pipieline at .devops/github-release-ev2/github-release-stages.yml which is locatet at go/Network-Aquarius locally and see what changes need ed in there for having the telemetry sdecar binary released in github |
The That said, based on how the existing pipeline works:
You'll need to make that change directly in the Network-Aquarius repo. Happy to provide a code snippet or template if you can share the relevant section of |
Here is the full context for the AI agent working on the Network-Aquarius pipeline: Context: ACN CNI Telemetry Sidecar — What Changed and WhyProblemThe What Changed in ACN (PR:
|
| Archive filename pattern | Contents (sidecar added) |
|---|---|
azure-vnet-cni-{os}-{arch}-{ver}.tgz |
azure-cni-telemetry-sidecar added |
azure-vnet-cni-multitenancy-transparent-vlan-{os}-{arch}-{ver}.tgz |
azure-cni-telemetry-sidecar added (Linux only) |
azure-vnet-cni-swift-{os}-{arch}-{ver}.tgz |
azure-cni-telemetry-sidecar added |
azure-vnet-cni-overlay-{os}-{arch}-{ver}.tgz |
azure-cni-telemetry-sidecar added |
azure-vnet-cni-overlay-dualstack-{os}-{arch}-{ver}.tgz |
azure-cni-telemetry-sidecar added |
The archives are produced by make cni-archive and placed in output/cni/.
What the Network-Aquarius Pipeline Needs to Do
The github-release-stages.yml EV2 pipeline publishes GitHub release assets. Depending on how it currently works:
Case A — If it uploads archives as-is: No changes needed. azure-cni-telemetry-sidecar is already bundled inside all the archive files above.
Case B — If it also publishes individual binaries as standalone GitHub release assets (i.e., lists specific filenames to upload separately, similar to how azure-vnet-telemetry may be listed individually): Add azure-cni-telemetry-sidecar (Linux) and azure-cni-telemetry-sidecar.exe (Windows) to that list.
Case C — If the pipeline builds binaries directly (not via make cni-archive) and then signs/uploads them individually: Add azure-cni-telemetry-sidecar-binary as a build step parallel to the existing azure-vnet-telemetry-binary step, and add the output binary to the signing and upload steps.
The binary source is at cns/cni-telemetry-sidecar/ in the Azure/azure-container-networking repo. The build command mirrors azure-vnet-telemetry exactly but uses a different source directory and output name.
|
/azp run Azure Container Networking PR |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Summary
Include
azure-cni-telemetry-sidecarin ACN CNI release archives so GitHub release artifacts match the CNI container image contents.What changed
azure-cni-telemetry-sidecarValidation
make azure-cni-telemetry-sidecar-binary GOOS=linux GOARCH=amd64dry-run verified archive commands include
azure-cni-telemetry-sidecaruses conventional commit messages
includes documentation
adds unit tests
relevant PR labels added
Notes: