Importing k8s.io/api/core/v1.ResourceRequirements
into a CRD makes it invalid when upgrading to v1.26.0
#115026
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-sig
Indicates an issue or PR lacks a `sig/foo` label and requires one.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What happened?
I'm upgrading Kubernetes v1.25 to v1.26 in the Security Profiles Operator, where the upgrade to v1.26 adds the
Claims []ResourceClaim
to the typeResourceRequirements
:kubernetes/staging/src/k8s.io/api/core/v1/types.go
Lines 2316 to 2328 in 4802d7b
We use the
ResourceRequirements
in our own CRD to be able to configure the values:https://github.com/kubernetes-sigs/security-profiles-operator/blob/33fd12312002985e08dca4166e304a02ba8fe2d9/api/spod/v1alpha1/spod_types.go#L312-L315
After the upgrade, the SPOD CRD got invalid with the following error:
What did you expect to happen?
The upgrade does not make the CRD invalid.
How can we reproduce it (as minimally and precisely as possible)?
Try to deploy the operator from the PR: https://github.com/kubernetes-sigs/security-profiles-operator/blob/caff76aeff452d367ba07fc5448eb11a13097d1e/deploy/operator.yaml
Anything else we need to know?
No response
Kubernetes version
Tested on:
Cloud provider
None
OS version
None
Install tools
None
Container runtime (CRI) and version (if applicable)
CRI-O v1.26.0
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: