Documentation
¶
Overview ¶
check-openapi-crd-enum-drift compares enum values in CRD schemas (generated from Go types via controller-gen) against the DataStorage OpenAPI spec. It uses a declarative mapping file to pair CRD fields with their OpenAPI counterparts and exits non-zero when the CRD contains values that the OpenAPI spec (and therefore the ogen-generated client) would reject at runtime.
Usage:
go run ./scripts/validation/check-openapi-crd-enum-drift [repo-root]
Click to show internal directories.
Click to hide internal directories.