For kubernetes projects, if we want to use the sig.k8s.io group for CRDs, we need to provide the annotation api-approved.kubernetes.io. Otherwise, apiserver rejects the CRD.
As a result, we have to manually edit the CRDs produced by controller-gen and continuously edit the files every time there is a type update.
Using kustomize is not possible, because the env-test doesn't load them and it could be problematic to do so (it's an additional dependency).
/kind feature
For kubernetes projects, if we want to use the
sig.k8s.iogroup for CRDs, we need to provide the annotationapi-approved.kubernetes.io. Otherwise, apiserver rejects the CRD.As a result, we have to manually edit the CRDs produced by
controller-genand continuously edit the files every time there is a type update.Using kustomize is not possible, because the env-test doesn't load them and it could be problematic to do so (it's an additional dependency).
/kind feature