kubectl from scratch
Go to file
Dan P. 852f7ff78f
Merge pull request #228 from mallardduck/update-readme
Update readme
2025-10-17 11:40:15 -04:00
.github Update docker/login-action action to v3.6.0 2025-09-30 04:37:33 +00:00
package Update registry.suse.com/bci/bci-base Docker tag to v15.7 2025-06-19 04:40:57 +00:00
scripts Allow image unit test script to work with image tags with "-" based suffixes 2024-10-27 22:48:31 -04:00
.gitignore Ignore text temp files incase someone runs script locally 2024-05-14 13:24:42 -04:00
CODEOWNERS Change codeowners to new frameworks team 2024-03-19 12:19:16 -04:00
LICENSE initial commit 2020-01-14 12:21:17 -07:00
README.md update readme 2025-10-17 10:41:19 -04:00
versions.txt Adding new versions 2025-09-15 09:06:26 +00:00

README.md

kubectl

And. That. Is. It.

[!WARNING] This image was an internal component of various Rancher Projects and has recently been deprecated. Any external consumers of this image should migrate to another image, like the Kubectl image from AppCo.

For Rancher projects we are migrating to rancher/kuberlr-kubectl based image, for assistance reach out to Team ORBS.

Adding new versions

  1. Add new versions workflow will create a PR,
  2. A CODEOWNER will need to review and approve the PR,
  3. Upon review, the Validate PR workflow will run to meet merge requirements,
  4. The PR can be merged after all checks pass,
  5. Once merged, the Publish Images workflow will run:
    • Validates versions file,
    • Prebuild information collection,
    • Image's built with docker buildx action,
    • CPU arch specific tags published

Merging PRs & Image Releases

Before a PR can be merged it must be:

  • Reviewed and Approved by at least 1 user assigned in CODEOWNERS,
  • passing the Check kubectl release versions action.

Digging Deeper

The source for the versions to create the images is in versions.txt. This file is maintained by the scheduled add-new-veresions.yml workflow which automatically looks up new versions and creates a pull request. Additionally, you can manually add entries to it or manually run the GitHub Actions workflow to create an automatic PR on-demand.

Scripts live in the ./scripts directory:

  • add-new-versions.sh: Checks GitHub releases for kubernetes/kubernetes with a version regex, checks if the image already exists, and if not, adds it to versions.txt.
  • check-versions.sh: Checks if the binaries exists for all architectures for versions in versions.txt.
  • new-versions.sh: Compares versions in versions.txt to filter out new versions into new-versions.txt temp file. (Based on existing image versions defined by $EXISTING_VERSIONS env variable.)

License

Copyright © 2020 - 2023 SUSE LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.