-
Notifications
You must be signed in to change notification settings - Fork 245
chore: install container-networkingplugins from dalec packages replacing old share #6313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: aks-node-assistant[bot] <190555641+aks-node-assistant[bot]@users.noreply.github.com>
Co-authored-by: Cameron Meissner <[email protected]>
Co-authored-by: aks-node-assistant[bot] <190555641+aks-node-assistant[bot]@users.noreply.github.com>
…source in scenario Flatcar_SecureTLSBootstrapping_BootstrapToken_Fallback (#7495)
Co-authored-by: aks-node-assistant[bot] <190555641+aks-node-assistant[bot]@users.noreply.github.com>
This reverts commit c7ee8e7.
|
The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors the installation of container networking plugins by migrating from direct downloads to dalec packages, with versions now centrally defined in components.json. This change addresses CVE vulnerabilities in the tap binary and eliminates dependencies on external shares.
Changes:
- Replaced
cni-pluginswithcontainernetworking-pluginspackage from dalec - Removed generic download logic from
cse_install.shand added OS-specificinstallCNI()functions - Updated
components.jsonwith version specifications for Ubuntu (20.04, 22.04, 24.04) and Azure Linux 3.0 - Flatcar and OSGuard continue using hardcoded downloads (v1.6.2) pending dalec updates
Reviewed changes
Copilot reviewed 37 out of 71 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| parts/common/components.json | Renamed package from cni-plugins to containernetworking-plugins with OS-specific version entries |
| parts/linux/cloud-init/artifacts/cse_install.sh | Removed generic installCNI() function and commented out installation call |
| parts/linux/cloud-init/artifacts/ubuntu/cse_install_ubuntu.sh | Added Ubuntu-specific installCNI() using apt-get |
| parts/linux/cloud-init/artifacts/mariner/cse_install_mariner.sh | Added Mariner-specific installCNI() using dnf |
| parts/linux/cloud-init/artifacts/flatcar/cse_install_flatcar.sh | Added Flatcar-specific installCNI() with hardcoded v1.6.2 download |
| parts/linux/cloud-init/artifacts/azlosguard/cse_install_osguard.sh | Added OSGuard-specific installCNI() with hardcoded v1.6.2 download |
| pkg/agent/testdata/* | Updated test data binary blobs reflecting the configuration changes |
| } | ||
|
|
||
| installCNI() { | ||
| #This is an old versionb because dalec needs to be updated for osguard/flatcar |
Copilot
AI
Jan 30, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment contains a typo: "versionb" should be "version".
| #This is an old versionb because dalec needs to be updated for osguard/flatcar | |
| #This is an old version because dalec needs to be updated for osguard/flatcar |
| installCNI() { | ||
| echo "installing ubuntu containernetworking-plugins" | ||
| # Old versions of VHDs will not have components.json. If it does not exist, we will fall back to the hardcoded download for CNI. | ||
| # Network Isolated Cluster / Bring Your Own ACR will not work with a vhd that requres a hardcoded CNI download. |
Copilot
AI
Jan 30, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment contains a typo: "requres" should be "requires".
| # Network Isolated Cluster / Bring Your Own ACR will not work with a vhd that requres a hardcoded CNI download. | |
| # Network Isolated Cluster / Bring Your Own ACR will not work with a vhd that requires a hardcoded CNI download. |
| fi | ||
| installCNI #reference plugins. Mostly for kubenet but loopback plugin is used by containerd until containerd 2 | ||
| rm -rf $CNI_DOWNLOADS_DIR & | ||
| #unncessary as this is completely installed at vhd build time in install dependeencies |
Copilot
AI
Jan 30, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment contains a typo: "unncessary" should be "unnecessary".
| #unncessary as this is completely installed at vhd build time in install dependeencies | |
| #unnecessary as this is completely installed at vhd build time in install dependeencies |
| } | ||
|
|
||
| # Reference CNI plugins is used by kubenet and the loopback plugin used by containerd 1.0 (dependency gone in 2.0) | ||
| # The version used to be deteremined by RP/toggle but are now just hadcoded in vhd as they rarely change and require a node image upgrade anyways |
Copilot
AI
Jan 30, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment contains a typo: "deteremined" should be "determined".
| # The version used to be deteremined by RP/toggle but are now just hadcoded in vhd as they rarely change and require a node image upgrade anyways | |
| # The version used to be determined by RP/toggle but is now just hardcoded in the VHD as it rarely changes and requires a node image upgrade anyway |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Get new reference plugins from dalec packages instead of zip. Only ever install one version defined in components.json No longer takes input from RP so we only cache one version
Some important notes
flatcar and osguard still on old ones. Need to find owners there to build them in dalec
Not installing at CSE time any more just in vhd.
only ever one version cached.
Which issue(s) this PR fixes:
CVE in tap binary are fixed but also this stops us from going to wierd shars directly
Requirements:
Special notes for your reviewer:
Release note: