build_crd

Function build_crd 

Source
pub fn build_crd<T: CustomResourceExt>() -> Result<CustomResourceDefinition>
Expand description

Build a single CRD from a Rust type, ensuring storage: true and served: true.

Mirrors the logic in src/bin/crdgen.rs so bootstrap and crdgen stay in sync.