Skip to content

🐛 fix(helm/v2-alpha): Replace bitnami/kubectl:latest with busybox:1.37#5476

Closed
camilamacedo86 wants to merge 1 commit intokubernetes-sigs:masterfrom
camilamacedo86:fix-image-testcharts
Closed

🐛 fix(helm/v2-alpha): Replace bitnami/kubectl:latest with busybox:1.37#5476
camilamacedo86 wants to merge 1 commit intokubernetes-sigs:masterfrom
camilamacedo86:fix-image-testcharts

Conversation

@camilamacedo86
Copy link
Member

@camilamacedo86 camilamacedo86 commented Feb 13, 2026

Summary

Replace bitnami/kubectl:latest with busybox:1.37 + runtime kubectl download from official Kubernetes releases (dl.k8s.io).

Problem

The current Helm chart tests use bitnami/kubectl:latest, which has several issues:

  • Third-party dependency (Bitnami) that could be deprecated or removed
  • Unpredictable :latest tag breaks reproducibility
  • Large image size (~130MB)
  • Not aligned with Kubebuilder being an official Kubernetes project

Investigation: Why Not Use registry.k8s.io Images?

We thoroughly investigated using only official Kubernetes registry images:

Option 1: registry.k8s.io/kubectl:v1.35.0

No shell - Image contains only the kubectl binary, cannot run test scripts that require /bin/sh

Option 2: registry.k8s.io/busybox:1.27.2

Outdated TLS - From 2017, uses old SSL/TLS libraries that fail to download from modern HTTPS endpoints

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 13, 2026
@camilamacedo86 camilamacedo86 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 13, 2026
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 13, 2026
@k8s-ci-robot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@camilamacedo86 camilamacedo86 changed the title 🐛 fix(helm/v2-alpha): use official kubectl image in Helm tests WIP 🐛 fix(helm/v2-alpha): use official kubectl image in Helm tests Feb 13, 2026
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 13, 2026
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 13, 2026
@camilamacedo86 camilamacedo86 changed the title WIP 🐛 fix(helm/v2-alpha): use official kubectl image in Helm tests 🐛 fix(helm/v2-alpha): use official kubectl image in Helm tests Feb 13, 2026
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 13, 2026
@camilamacedo86 camilamacedo86 added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-blocker labels Feb 13, 2026
@camilamacedo86
Copy link
Member Author

We cannot release without change the image for a image that we can trust in long term.

@camilamacedo86 camilamacedo86 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 13, 2026
@camilamacedo86 camilamacedo86 removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 13, 2026
@k8s-ci-robot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 13, 2026
@camilamacedo86 camilamacedo86 force-pushed the fix-image-testcharts branch 2 times, most recently from 6998a03 to 0270688 Compare February 13, 2026 22:23
@k8s-ci-robot k8s-ci-robot removed the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 13, 2026
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 13, 2026
@camilamacedo86 camilamacedo86 force-pushed the fix-image-testcharts branch 2 times, most recently from 93a1a80 to ff35fb8 Compare February 13, 2026 22:33
@camilamacedo86 camilamacedo86 changed the title 🐛 fix(helm/v2-alpha): use official kubectl image in Helm tests 🐛 fix(helm/v2-alpha): Replace bitnami/kubectl:latest with registry.k8s.io/busybox:1.27.2 + runtime kubectl download from official Kubernetes releases. Feb 13, 2026
@camilamacedo86 camilamacedo86 changed the title 🐛 fix(helm/v2-alpha): Replace bitnami/kubectl:latest with registry.k8s.io/busybox:1.27.2 + runtime kubectl download from official Kubernetes releases. 🐛 fix(helm/v2-alpha): Use k8s official images and pinned versions Feb 13, 2026
@camilamacedo86 camilamacedo86 changed the title 🐛 fix(helm/v2-alpha): Use k8s official images and pinned versions 🐛 fix(helm/v2-alpha): Replace bitnami/kubectl:latest with busybox:1.37 Feb 14, 2026
@k8s-ci-robot
Copy link
Contributor

@camilamacedo86: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-kubebuilder-e2e-k8s-1-33-0 c55bf2a link true /test pull-kubebuilder-e2e-k8s-1-33-0

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

…mage and allow to config

Co-authored-by: Cursor <cursoragent@cursor.com>
@camilamacedo86
Copy link
Member Author

Close we will need to revert this addition to the plugin
The complexities and risks in long term does not really justifiable value to end users

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. release-blocker size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants