crdref

command
v1.0.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Command crdref generates the operator resource reference, the block between the marker comments in docs/site/reference/operator-resources.md, from the operator's own sources:

  • config/crd/bases: one entry per CustomResourceDefinition, its summary, names, printer columns, spec and status fields and every rule the API server enforces from the schema;
  • config/samples: the entry's example, from the kubebuilder sample named <group>_<version>_<kind>.yaml when one exists;
  • internal/controller: the controller that reconciles the kind.

An entry states only what those sources show: a part with nothing to show is left out. With -check, crdref writes nothing and fails when the committed page differs from what it would generate.

Jump to

Keyboard shortcuts

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