Skip to content

Conversation

@hsri-pf9
Copy link
Collaborator

@hsri-pf9 hsri-pf9 commented Jul 25, 2025

What this PR does / why we need it:

Changed the way of downloading kubelet, kubectl, kubeadm and cri-tools not from apt but directly downloading it from the repo via curl and adding them to the bundle.

Summary by Bito

This pull request transitions from apt-based package downloads to direct downloads from remote repositories, refining the bundle builder, Dockerfile, and download script. The changes improve command syntax, update environment variables, and implement curl for fetching binaries. The PR also corrects variable formatting, enhances docker run commands with additional environment variables, and explicitly sets CNI_VERSION in the Dockerfile for a more robust deployment process.

@bito-code-review
Copy link

bito-code-review bot commented Jul 25, 2025

Changelist by Bito

This pull request implements the following key changes.

Key Change Files Impacted
New Feature - Direct Download of Binaries

download.sh - Replaced APT-based package downloads with direct curl downloads for kubeadm, kubelet, kubectl, crictl, and CNI plugins to improve reliability and speed.

Feature Improvement - Enhanced Bundle Scripts

build-push-bundle.sh - Updated environment variable handling (adding OS and CNI_VERSION) and revised the docker run command to include new parameters.

build-bundle.sh - Refined file copy commands and tar operations with proper quoting and updated paths for a consistent bundling process.

Other Improvements - Configuration Updates in Dockerfile

Dockerfile - Added new environment variables (OS and CNI_VERSION) to support the updated download mechanism.

Copy link

@bito-code-review bito-code-review bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review Agent Run #42a020

Actionable Suggestions - 1
  • installer/bundle_builder/ingredients/deb/download.sh - 1
    • Double 'v' prefix in CNI_VERSION variable · Line 17-19
Review Details
  • Files reviewed - 3 · Commit Range: 581dddc..581dddc
    • installer/bundle_builder/build-bundle.sh
    • installer/bundle_builder/ingredients/deb/Dockerfile
    • installer/bundle_builder/ingredients/deb/download.sh
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Default Agent You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

Comment on lines +17 to +19
K8S_VERSION="v${KUBERNETES_VERSION%%-*}"
CRICTL_VERSION="v${CRITOOL_VERSION}"
CNI_VERSION="v${CNI_VERSION}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double 'v' prefix in CNI_VERSION variable

The K8S_VERSION and CRICTL_VERSION variables are correctly prefixed with 'v', but CNI_VERSION is incorrectly prefixed with 'v' twice since the environment variable already includes the 'v' prefix. This will cause download failures for CNI plugins.

Code suggestion
Check the AI-generated fix before applying
 @@ -17,7 +17,7 @@
  +K8S_VERSION="v${KUBERNETES_VERSION%%-*}"
  +CRICTL_VERSION="v${CRITOOL_VERSION}"
 -+CNI_VERSION="v${CNI_VERSION}"
 ++CNI_VERSION="${CNI_VERSION}"
 
  +mkdir -p /ingredients
 

Code Review Run #42a020


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

@bito-code-review
Copy link

bito-code-review bot commented Jul 25, 2025

Code Review Agent Run #472fa5

Actionable Suggestions - 0
Review Details
  • Files reviewed - 3 · Commit Range: 581dddc..d0169d8
    • installer/bundle_builder/ingredients/deb/download.sh
    • .ci/build-push-bundle.sh
    • installer/bundle_builder/ingredients/deb/Dockerfile
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Default Agent You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant