-
Notifications
You must be signed in to change notification settings - Fork 67
✨ support target architecture for install.sh
#497
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
✨ support target architecture for install.sh
#497
Conversation
Signed-off-by: Tyler Gillson <[email protected]>
Signed-off-by: Tyler Gillson <[email protected]>
Signed-off-by: Tyler Gillson <[email protected]>
WalkthroughThe install script was updated to use improved variable initialization, introduce an optional Changes
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 2
🧹 Nitpick comments (1)
install.sh (1)
34-41: Quote$ARCHand guard for unknown architecturesUsing an un-quoted
$ARCHin thecasepattern can break when the variable contains spaces (unlikely but easy to avoid).
Consider also adding a default branch so user-provided/unknown values fail fast instead of propagating toverifySupported, where they will silently be rejected.- case $ARCH in + case "$ARCH" in armv7*) ARCH="arm";; aarch64) ARCH="arm64";; x86_64) ARCH="amd64";; + *) + echo "Unsupported architecture: $ARCH" + exit 1 ;; esac
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
install.sh(6 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
- GitHub Check: e2e-test
- GitHub Check: integration-test
- GitHub Check: verify
- GitHub Check: unit-test
🔇 Additional comments (1)
install.sh (1)
89-92: Nice fix on the sudo checkSwitching to
"$EUID" -ne 0and quoted comparisons removes the brittle-atest and silences ShellCheck warnings. 👍
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Tyler Gillson <[email protected]>
709382a to
78224ee
Compare
mikeshng
left a comment
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.
/lgtm
Also tested locally with a Linux OS.
|
/assign @qiujian16 @zhujian7 |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mikeshng, qiujian16, TylerGillson The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
5f93d42
into
open-cluster-management-io:main
Summary
install.shto support installingclusteradmfor a specific target architecture.vprefix for target version more robustRelated Issues
The linux/arm64 build for the fleetconfig-controller Dockerfile leverages this script and is currently installing the incorrect (linux/amd64) binary unless
make imagesis invoked from a linux/arm64 github runner.Summary by CodeRabbit
Documentation
Bug Fixes
New Features