image-builder:- add build-only validation mode and image selection (#13128)

This commit is contained in:
Srishti Jaiswal
2026-04-10 12:30:21 +05:30
committed by GitHub
parent 00a0479078
commit af2250d64e
4 changed files with 88 additions and 46 deletions

View File

@@ -55,3 +55,24 @@ make docker_password=<quay-robot-token>
3. Submit a PR with the `defaults/main.yml` change so CI can use the new image.
See [#12379](https://github.com/kubernetes-sigs/kubespray/pull/12379) for an example.
## CI Validation
### Build only
```bash
cd test-infra/image-builder/
make validate
```
### Build only for one image
```bash
cd test-infra/image-builder/
make validate-single image_name=ubuntu-2404
```
## Runtime Variables
- `kubevirt_images_push` (default: `true`): when `false`, skip docker login/push/logout.
- `kubevirt_images_selected` (default: `[]`): list of image keys to build. Empty list builds all images.