operator-sdk generate crds

operator-sdk generate crds

Generates CRDs for API’s

Synopsis

generate crds generates CRDs or updates them if they exist, under deploy/crds/__crd.yaml; OpenAPI V3 validation YAML is generated as a ‘validation’ object.

Example:

  1. $ operator-sdk generate crds
  2. $ tree deploy/crds
  3. ├── deploy/crds/app.example.com_v1alpha1_appservice_cr.yaml
  4. ├── deploy/crds/app.example.com_appservices_crd.yaml
  1. operator-sdk generate crds [flags]

Options

  1. --crd-version string CRD version to generate (default "v1")
  2. -h, --help help for crds

SEE ALSO

Last modified April 24, 2020: internal/generate/crd: change default CRD to v1 (#2874) (b17779d7)