feat(linux): network isolated cluster install package via cached first#8292
Merged
cameronmeissner merged 1 commit intomainfrom Apr 22, 2026
Merged
feat(linux): network isolated cluster install package via cached first#8292cameronmeissner merged 1 commit intomainfrom
cameronmeissner merged 1 commit intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Enable installing Linux bootstrap tools in network-isolated clusters by attempting a cache-only package install before falling back to pulling artifacts from a registry.
Changes:
- Add cache-only install paths for Ubuntu (.deb via apt simulation + local install) and Mariner (.rpm via dnf plan + local install).
- Refactor Mariner RPM cache selection into helper functions.
- Update shared installer flow to try cache-first (with an e2e-only test-mode escape hatch) and extend the e2e scenario config.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| parts/linux/cloud-init/artifacts/ubuntu/cse_install_ubuntu.sh | Adds installPackageFromCache for cache-only .deb installs. |
| parts/linux/cloud-init/artifacts/mariner/cse_install_mariner.sh | Uses new helpers for RPM selection and adds cache-only install function. |
| parts/linux/cloud-init/artifacts/mariner/cse_helpers_mariner.sh | Introduces helpers to pick cached RPM filenames and build install argument lists. |
| parts/linux/cloud-init/artifacts/cse_install.sh | Tries installPackageFromCache before pulling from registry; adds test-mode bypass. |
| parts/linux/cloud-init/artifacts/cse_cmd.sh | Adds env var wiring for NETWORK_ISOLATED_CLUSTER_TEST_MODE. |
| e2e/scenario_test.go | Enables “TestMode” for the network-isolated cluster e2e scenario. |
awesomenix
reviewed
Apr 21, 2026
awesomenix
reviewed
Apr 21, 2026
| local download_root="/tmp/kubernetes/downloads" # /opt folder will return permission error | ||
|
|
||
| if [ "${NETWORK_ISOLATED_CLUSTER_TEST_MODE}" = "true" ]; then | ||
| echo "NETWORK_ISOLATED_CLUSTER_TEST_MODE=true, skipping installPackageFromCache for ${tool_name}" |
Contributor
There was a problem hiding this comment.
i dont understand, what does test mode mean here, its not clear just by looking at the parameter.
Are you forcing the skip of package cache install? Is this different fromSHOULD_ENFORCE_KUBE_PMC_INSTALL
Contributor
Author
There was a problem hiding this comment.
- I plan to decrease the useage of
SHOULD_ENFORCE_KUBE_PMC_INSTALLin Network isolated cluster scenario. BecauseSHOULD_ENFORCE_KUBE_PMC_INSTALLreads from vmss tag, which could be changed by customer (if they add this tag) SHOULD_ENFORCE_KUBE_PMC_INSTALLused to force package install instead of binary in version < 1.34. Here thee2emodeis to avoid some e2e scenarios directly use cache but fail to cover the network isolated cluster pull package logic
awesomenix
reviewed
Apr 21, 2026
awesomenix
reviewed
Apr 21, 2026
awesomenix
approved these changes
Apr 22, 2026
cameronmeissner
approved these changes
Apr 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
feat(linux): network isolated cluster install package via cached first
Which issue(s) this PR fixes:
Fixes #