check-openapi-crd-enum-drift

command
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL