When I ask to create my Custom Resource using kubectl apply
, I get a failure on: "Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "my-crd.example.com" not found"
The CRD is meant to be installed by an Operator.
If we skipped this typecheck, it would not cause a functional problem, because other code guarantees that by the time the Operator starts up, the CRD is available. So when the Operator reads the Custom Resource yaml and tries to create it, the CRD will be there.
Can I suspend the typechecking that produces this error?