apiVersion: apiextensions.k8s.io/v1beta1 deprecated since 1.22
beyondelastic opened this issue · 0 comments
beyondelastic commented
CRD api used is deprecated and needs to be updated from apiextensions.k8s.io/v1beta1 to apiextensions.k8s.io/v1
See Kubernetes deprecation guide:
https://kubernetes.io/docs/reference/using-api/deprecation-guide/
If you run the init command on a newer Kubernetes version, you will get the following error:
➜ kubectl apparmor-manager init -i
I0616 11:40:14.451106 55202 k8s.go:77] Creating a CRD: apparmorprofiles.crd.security.sysdig.com
FATA[2023-06-16T11:40:15+02:00] failed to install CRD: the server could not find the requested resource