Skip to content

Add support for adding annotations to CRD #656

@alculquicondor

Description

@alculquicondor

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

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions