-
Notifications
You must be signed in to change notification settings - Fork 89
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
K8s 1.22 compatibility : v1beta1 CRD no longer understood #882
Comments
Thanks for reporting this issue. We have already started the effort for supporting STORK on k8s 1.22. |
@adityadani Could you please explain how to get the CRD manifests in stork code base. I was not able to find them. |
Hi @nabiltntn you will need to use stork 2.7.0 + which has k8s 1.22+ support https://github.com/libopenstorage/stork/releases/tag/v2.7.0 |
@ram-infrac thank you for this reply. - name: v1alpha1
schema:
openAPIV3Schema:
x-kubernetes-preserve-unknown-fields: true
served: true
storage: true Is this the actual definition ? |
so we register CRD's when stork gets deployed, if you need spec details for crd's you can browse |
Is this a BUG REPORT or FEATURE REQUEST?:
BUG REPORT
What happened:
After upgrading kubernetes from 1.21 to 1.22, storck fails starting with the following message:
Looking at the code, I suspect this is because v1beta1 version of CRD is now removed, and code still uses it (
stork/pkg/k8sutils/k8sutils.go
Line 69 in 362c554
What you expected to happen:
Check K8s version before attempting to manipulate CRDs, or try using v1 only using v1beta1 client in case of failure so that stork can start...
How to reproduce it (as minimally and precisely as possible):
Try on a 1.22 K8s cluster
Anything else we need to know?:
Environment:
kubectl version
): 1.22.1uname -a
): 4.19.0-17-amd64The text was updated successfully, but these errors were encountered: