Documentation
¶
Overview ¶
Command jsonschema generates a JSON Schema for the fleet.yaml file from the FleetYAML Go struct. It is wired into `go generate` (see generate.go) so the schema is regenerated alongside the CRDs and stays in sync with the structs.
It must be run from the repository root (as `go generate` and `go run ./cmd/codegen/jsonschema` both are), because it reads Go source comments from ./pkg/apis and writes the schema under ./schemas.
Click to show internal directories.
Click to hide internal directories.