Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 656 Bytes

operator-sdk_generate_k8s.md

File metadata and controls

34 lines (23 loc) · 656 Bytes

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:

$ operator-sdk generate k8s
$ tree pkg/apis
pkg/apis/
└── app
	└── v1alpha1
		├── zz_generated.deepcopy.go
operator-sdk generate k8s [flags]

Options

  -h, --help   help for k8s

SEE ALSO