cue get crd

CUE v0.18.0

convert Kubernetes CRDs to packages in the current module

Usage

cue get crd <files> [flags]

crd converts Kubernetes Custom Resource Definitions (CRDs) to CUE packages.

It reads all the argument files and creates a version package in the current directory for each CRD found that matches the group specified by the --group flag, as determined by the spec.group field.

If the --group flag is not provided, then all the CRDs found must have the same group.

Each package contains a definition named after the spec.names.kind field in each extracted CRD.

Example:

	cue get crd --group example.com ./crds/*.yaml
	curl https://raw.githubusercontent.com/example/crd.yaml | cue get crd yaml: -

Flags

-g, --group string                 CRD group to filter by

Global flags

-E, --all-errors                   print all available errors
-C, --chdir string                 change working directory before running command (must be the first flag)
-i, --ignore                       proceed in the presence of errors
-s, --simplify                     simplify output
Install CUE