apache / rocketmq-operator

Apache RocketMQ Operator
https://rocketmq.apache.org/
Apache License 2.0
314 stars 127 forks source link

unable to recognize "deploy/crds/rocketmq_v1alpha1_broker_crd.yaml": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1" #78

Closed carloscao0928 closed 2 years ago

carloscao0928 commented 3 years ago

kubectl version v1.22.0

root@xxx:~/rocketmq-operator# bash -x install-operator.sh

Hatuw commented 2 years ago

You should migrate the yaml file to apiVersion: apiextensions.k8s.io/v1 see also, https://cloud.google.com/kubernetes-engine/docs/deprecations/apis-1-22

jisongxi commented 2 years ago

only change the yaml to apiVersion: apiextensions.k8s.io/v1, casue another issue like this : The CustomResourceDefinition "brokers.rocketmq.apache.org" is invalid: spec.versions[0].schema.openAPIV3Schema: Required value: schemas are required how to fix this issue in k8s 1.22 version?

gobbq commented 2 years ago

Please checkout the latest codes and try again, we have already upgrade SDK to the latest version

feixiaohuijava commented 2 years ago

kubernets 1.16 will not support v1beta1 but v1 https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definition-versioning/

caigy commented 2 years ago

fixed by #97