-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use apiextensions.k8s.io/v1 as CRD version for envtest #1034
Comments
CRD v1 are part of apiextensions, not k8s.io/api. You can find them in /priority awaiting-more-evidence |
I had the same issue before, please check the version of your |
We could add a check in envtest to validate that the API server is at least v1.16 when using CRDv1 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Do we have an action item here? I don't know if this is a real controller runtime issue |
thank you @jiachengxu! Confirmed it works with kubebuilder |
Hi I'm hitting an issue when trying to update our CRD version to
apiextensions.k8s.io/v1
I'm using controller-gen 0.3.0, and added
crd:crdVersions=v1
as CRD generation option, it successfully generated ashowever envtest seems only initialized
v1beta1
, I kept getting the following error fromsuite_test.go
:pkg versions:
I see envtest has https://github.com/kubernetes-sigs/controller-runtime/blob/release-0.6/pkg/envtest/helper.go#L16,
but
k8s.io/api
doesnt have v1 yet: https://pkg.go.dev/k8s.io/[email protected], is it because of this? is so is there plan to add or any workaround?Thanks!
The text was updated successfully, but these errors were encountered: