Just annotate single message in a proto-file with our special annotation, and compile it using this plugin. This will give you proto/mycrd.crd.yaml, which can be put with kubectl apply -f ...
. ├── crd-example/ # Custom Resource Definition examples ├── docker-buildx-example/ # Multi-architecture Docker builds ├── ingress-example/ # Kubernetes Ingress configuration ├── oc-deploy-example/ # ...