Skip to content

apiVersion: apiextensions.k8s.io/v1beta1 deprecated since 1.22 #10

@beyondelastic

Description

@beyondelastic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions