-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[ubuntu] Unpin the minikube version #12480
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
[ubuntu] Unpin the minikube version #12480
Conversation
35f59fd
to
fa9c2ed
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
This PR updates the Ubuntu image build script to unpin the Minikube version and always fetch the latest release, adjusting download, checksum validation, and installation steps accordingly.
- Switches from a fixed Minikube version (v1.34.0) to
"latest"
- Uses
download_with_retry
to fetch the binary and then performs checksum validation - Installs the downloaded Minikube binary to
/usr/local/bin/minikube
Comments suppressed due to low confidence (2)
images/ubuntu/scripts/build/install-kubernetes-tools.sh:36
- Ensure that
download_with_retry
actually returns the path to the downloaded file. If it writes to a fixed filename instead, you’ll need to reference that name when computing the checksum and during installation.
minikube_binary_path=$(download_with_retry "https://storage.googleapis.com/minikube/releases/${minikube_version}/minikube-linux-amd64")
images/ubuntu/scripts/build/install-kubernetes-tools.sh:39
- Using the literal tag
"latest"
may not resolve correctly in the GitHub Releases API. You may need to first query/releases/latest
to get the actual tag name or handle redirection to ensure the checksum matches the right asset.
minikube_hash=$(get_checksum_from_github_release "kubernetes/minikube" "linux-amd64" "${minikube_version}" "SHA256")
minikube_hash=$(get_checksum_from_github_release "kubernetes/minikube" "linux-amd64" "1.34.0" "SHA256") | ||
use_checksum_comparison "minikube-linux-amd64" "${minikube_hash}" | ||
# Download and install minikube | ||
minikube_version="latest" |
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.
[nitpick] Hard-coding latest
can lead to non-reproducible builds. Consider parameterizing the version via an environment variable or defaulting to a specific tag while still allowing overrides.
minikube_version="latest" | |
minikube_version="${MINIKUBE_VERSION:-1.30.0}" |
Copilot uses AI. Check for mistakes.
|
||
# Install minikube | ||
install minikube-linux-amd64 /usr/local/bin/minikube | ||
# Supply chain security - Minikube |
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.
[nitpick] Comment casing is inconsistent with earlier lines (minikube
vs Minikube
). Standardize on one spelling/casing for clarity and consistency.
# Supply chain security - Minikube | |
# Supply chain security - minikube |
Copilot uses AI. Check for mistakes.
Description
This PR will upgrade the minikube version to the latest.
Related issue:
Check list