Skip to content

fix: adding the logic to download the cni-plugins (non-dalec) back...#7884

Merged
awesomenix merged 3 commits intomainfrom
djsly/fix-compatibility-cni
Feb 17, 2026
Merged

fix: adding the logic to download the cni-plugins (non-dalec) back...#7884
awesomenix merged 3 commits intomainfrom
djsly/fix-compatibility-cni

Conversation

@djsly
Copy link
Collaborator

@djsly djsly commented Feb 17, 2026

What this PR does / why we need it:
fix: adding the logic to download the binary back...

Rlease Notes -- shows that we are now caching both CNI binaries.,,

  - CNI plugin version 1.6.2
  - containernetworking-plugins version 1.9.0-ubuntu22.04u1

Which issue(s) this PR fixes:

Fixes #

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Reintroduces VHD-build-time caching for the legacy cni-plugins component (non-Dalec) to preserve backward compatibility with older provisioning/CSE logic that expects an extracted CNI directory under /opt/cni/downloads.

Changes:

  • Add a downloadCNIPlugins helper to download the legacy cni-plugins tarball.
  • Add a new components.json package handler for "cni-plugins" in the install loop to download + unpack it into the CNI downloads cache.

@djsly
Copy link
Collaborator Author

djsly commented Feb 17, 2026

@copilot review

Copy link
Contributor

Copilot AI commented Feb 17, 2026

@djsly I've opened a new pull request, #7886, to work on those changes. Once the pull request is ready, I'll request review from you.

…ing brace (#7886)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: djsly <4981802+djsly@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 17, 2026 21:27
@awesomenix awesomenix merged commit 78c6da3 into main Feb 17, 2026
22 of 30 checks passed
@awesomenix awesomenix deleted the djsly/fix-compatibility-cni branch February 17, 2026 21:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

;;
"cni-plugins")
# cni-plugins is a special case that it is still in components.json for backward compatibility but we don't cache it.
testCNIPluginsInstalled "${downloadLocation}" "${PACKAGE_VERSIONS[@]}"
Copy link

Copilot AI Feb 17, 2026

Choose a reason for hiding this comment

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

testPackagesInstalled forwards ${PACKAGE_VERSIONS[@]} into testCNIPluginsInstalled, but testCNIPluginsInstalled only reads $2 (one version). If cni-plugins ever has multiple versions (like azure-cni does), this special-case will silently validate only the first version. Make testCNIPluginsInstalled accept an array of versions (e.g., local versions=("${@:2}") and loop) or loop over versions in the case block before calling it.

Suggested change
testCNIPluginsInstalled "${downloadLocation}" "${PACKAGE_VERSIONS[@]}"
for version in "${PACKAGE_VERSIONS[@]}"; do
testCNIPluginsInstalled "${downloadLocation}" "${version}"
done

Copilot uses AI. Check for mistakes.
djsly added a commit that referenced this pull request Feb 17, 2026
…#7884)

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
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.

4 participants