operator-sdk generate k8s

operator-sdk generate k8s

Generates Kubernetes code for custom resource

Synopsis

k8s generator generates code for custom resources given the API specs in pkg/apis// directories to comply with kube-API requirements. Go code is generated under pkg/apis///zz_generated.deepcopy.go. Example:

  1. $ operator-sdk generate k8s
  2. $ tree pkg/apis
  3. pkg/apis/
  4. └── app
  5. └── v1alpha1
  6. ├── zz_generated.deepcopy.go
  1. operator-sdk generate k8s [flags]

Options

  1. -h, --help help for k8s

SEE ALSO

Last modified April 7, 2020: fix CLI docs for website, links and frontmatter (#2799) (8323f56b)