operator-sdk add crd
operator-sdk add crd
Adds a Custom Resource Definition (CRD) and the Custom Resource (CR) files
Synopsis
The operator-sdk add crd command will create a Custom Resource Definition (CRD)and the Custom Resource (CR) files for the specified api-version and kind.
Generated CRD filename: /deploy/crds/__crd.yaml Generated CR filename: /deploy/crds/___cr.yaml
<project-name>/deploy path must already exist
--api-version and --kind are required flags to generate the new operator application.
operator-sdk add crd [flags]
Options
--api-version string Kubernetes apiVersion and has a format of $GROUP_NAME/$VERSION (e.g app.example.com/v1alpha1)
--crd-version string CRD version to generate (default "v1beta1")
-h, --help help for crd
--kind string Kubernetes CustomResourceDefintion kind. (e.g AppService)
SEE ALSO
- operator-sdk add - Adds a controller or resource to the project
Last modified January 1, 0001
当前内容版权归 operatorframework 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 operatorframework .