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:

$ 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