OpenAPI Schema Validation Errors for imagePullSecrets and hostAliases for CronjobTutorial sample with controller-runtime v0.18.3 and Kubernetes 1.30 #3917
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
What broke? What's expected?
Problem Description
After upgrading the controller-runtime version from
v0.17.3
tov0.18.3
(which means upgrade k8s api from 1.29 to 1.30), we encountered validation errors when running make test-book due to changes in Kubernetes 1.30. The issue stems from the addition of the// +listType=atomic
marker to the imagePullSecrets and hostAliases fields in thek8s.io/api/batch/v1
API used in the cronjob tutorial. This marker results in OpenAPI schema validation errors when the CRD is generated withx-kubernetes-list-type: atomic
.Kubernetes Issue Reference: kubernetes/kubernetes#124540
See the error faced:
Therefore, we commented the test called in the makefile target
.PHONY: test-book
.When we be able to update controller-runtime within an upper version that us using a k8s version with the fix we should uncomment the test and ensure that all is fine.
What is required to do here:
pull-kubebuilder-test
will not failReproducing this issue
No response
KubeBuilder (CLI) Version
rc-4.0.0
PROJECT version
master
Plugin versions
No response
Other versions
No response
Extra Labels
No response
The text was updated successfully, but these errors were encountered: