Skip to content

[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

Merged
merged 15 commits into from
Jul 4, 2025

Conversation

kishorekumar-anchala
Copy link
Contributor

@kishorekumar-anchala kishorekumar-anchala commented Jun 26, 2025

Description

This PR will upgrade the minikube version to the latest.

Related issue:

Check list

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable)
  • Changes are tested and related VM images are successfully generated

@kishorekumar-anchala kishorekumar-anchala changed the title [ubuntu] Fix kubectl install by ensuring /etc/apt/keyrings directory exists and unpin the minikube version [ubuntu] Unpin the minikube version Jul 4, 2025
@kishorekumar-anchala kishorekumar-anchala marked this pull request as ready for review July 4, 2025 10:44
@Copilot Copilot AI review requested due to automatic review settings July 4, 2025 10:44
Copy link
Contributor

@Copilot Copilot AI left a 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"
Copy link
Preview

Copilot AI Jul 4, 2025

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.

Suggested change
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
Copy link
Preview

Copilot AI Jul 4, 2025

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.

Suggested change
# Supply chain security - Minikube
# Supply chain security - minikube

Copilot uses AI. Check for mistakes.

@kishorekumar-anchala
Copy link
Contributor Author

Test Builds :

Ubuntu-24
Ubuntu-22

@vidyasagarnimmagaddi vidyasagarnimmagaddi merged commit 4bd4d1b into actions:main Jul 4, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants