-
Notifications
You must be signed in to change notification settings - Fork 247
fix: copy kubectl and kubelet to /usr/local/bin for compatibility #7804
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
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 adds compatibility for copying kubectl and kubelet binaries to /usr/local/bin to support hardcoded paths in some AKS usage patterns. The change is implemented across multiple OS-specific installation scripts while attempting to preserve compatibility with immutable filesystems like Flatcar.
Changes:
- Adds copying of kubectl/kubelet to /usr/local/bin after package installation
- Implements conditional check for writable /usr/local/bin in common install script
- Updates snapshot test data to reflect binary changes in Flatcar and CustomizedImage scenarios
Reviewed changes
Copilot reviewed 34 out of 68 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| parts/linux/cloud-init/artifacts/cse_install.sh | Adds conditional copy to /usr/local/bin with writability check [ -w /usr/local/bin ] |
| parts/linux/cloud-init/artifacts/ubuntu/cse_install_ubuntu.sh | Adds unconditional copy to /usr/local/bin - missing writability check |
| parts/linux/cloud-init/artifacts/mariner/cse_install_mariner.sh | Adds unconditional copy to /usr/local/bin - missing writability check |
| pkg/agent/testdata/Flatcar/CustomData.inner | Base64-encoded snapshot test data update |
| pkg/agent/testdata/Flatcar+CustomCloud/CustomData.inner | Base64-encoded snapshot test data update |
| pkg/agent/testdata/Flatcar+CustomCloud+USSec/CustomData.inner | Base64-encoded snapshot test data update |
| pkg/agent/testdata/CustomizedImageLinuxGuard/CustomData | Base64-encoded snapshot test data update |
| pkg/agent/testdata/CustomizedImage/CustomData | Base64-encoded snapshot test data update |
a7eb5cb to
45e6c80
Compare
|
The failures are unrelated. |
Regrettably, some AKS usage is hardcoded to expect /usr/local/bin. We still want to avoid writing here on immutable distros, but we can retain compatibility in other cases. Signed-off-by: James Le Cuirot <[email protected]>
45e6c80 to
c255ff2
Compare
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
Copilot reviewed 34 out of 69 changed files in this pull request and generated no new comments.
What this PR does / why we need it:
Regrettably, some AKS usage is hardcoded to expect /usr/local/bin. We still want to avoid writing here on immutable distros, but we can retain compatibility in other cases.
Which issue(s) this PR fixes:
Fixes a couple of Sev 2 IcMs.