Skip to content
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

apiextensions.k8s.io/v1beta1 deprecated Operator cannot deploy on k8s >1.22 #27

Open
psarossy opened this issue Feb 5, 2022 · 3 comments

Comments

@psarossy
Copy link

psarossy commented Feb 5, 2022

The operator config uses deprecated features, and hence doesn't work on anything newer than k8s 1.22

$ kubectl delete -f only_vernemq [13:51:56]
namespace "messaging" deleted
deployment.apps "vmq-operator" deleted
role.rbac.authorization.k8s.io "vmq-operator" deleted
rolebinding.rbac.authorization.k8s.io "vmq-operator" deleted
serviceaccount "vmq-operator" deleted
service "vernemq-k8s" deleted
serviceaccount "vernemq-k8s" deleted
unable to recognize "only_vernemq/0vernemq-operator-0vernemqCustomResourceDefinition.yaml": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"
unable to recognize "only_vernemq/vernemq-vernemq.yaml": no matches for kind "VerneMQ" in version "vernemq.com/v1alpha1"

@ioolkos
Copy link
Contributor

ioolkos commented Feb 5, 2022

@psarossy Thanks, yes, that's likely so.
Do you have a need for this?
What is expected or best practice to support Kubernetes versions?

@thatsdone
Copy link

I also noticed this issue today.

IMHO, expected behavior is working for the latest version of kubernetes even if we got deprecation wornings.
Also, the best practice would be updating implementation before stop serving timing.

According to the "Deprecated API Migration Guide":

https://kubernetes.io/docs/reference/using-api/deprecation-guide/

at least CustomResourceDefinition API version should be updated to v1 from v1beta1.

@wer-is-paul
Copy link

Should bei fixed by the Operator SDK Update, pleased retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants