Operator API Standards
When adding or changing CRD types under operator/api/v1/:
- Read
operator/docs/api_design.md— the API design principles plus the concrete Go/kubebuilder coding conventions (optional vs required fields, theEnabled/Disabledenum idiom, validation/CEL markers, the top-level Kind marker block, shared-type reuse, the Deployment override pattern) and the end-of-file checklist. Apply all of it, and run the checklist before you finish. - Read
DESIGN.mdfor related rules ("Respect User Input", "Resource Ownership") when a judgement call isn't settled byapi_design.md. - Follow the post-change workflow in
api_design.md—make gen-files, verify scope didn't flip toNamespaced, updateconvertif relevant, andmake dirty-check.