Skip to content

Commit

Permalink
Deprecate 'operator-sdk add crd' cmd
Browse files Browse the repository at this point in the history
Hide `add crd` command and add deprecation message.
  • Loading branch information
varshaprasad96 committed Jun 4, 2020
1 parent 4e3cc47 commit ae62b1a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 36 deletions.
7 changes: 7 additions & 0 deletions cmd/operator-sdk/add/crd.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ import (
// newAddCRDCmd - add crd command
func newAddCRDCmd() *cobra.Command {
crdCmd := &cobra.Command{
Deprecated: `Use 'operaot-sdk add api' command to create a new API definition for a custom resource.
'add api' will generate or update CRDs for a particular GVK based on values ` +
`provided to '--kind' and '--api-version' specified in the command.
Refer to 'https://sdk.operatorframework.io/docs/cli/operator-sdk_add_api/' for more details.
`,
Use: "crd",
Short: "Adds a Custom Resource Definition (CRD) and the Custom Resource (CR) files",
Long: `The operator-sdk add crd command will create a Custom Resource Definition (CRD)` +
Expand Down
1 change: 0 additions & 1 deletion website/content/en/docs/cli/operator-sdk_add.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ Adds a controller or resource to the project
* [operator-sdk](../operator-sdk) - An SDK for building operators with ease
* [operator-sdk add api](../operator-sdk_add_api) - Adds a new api definition under pkg/apis
* [operator-sdk add controller](../operator-sdk_add_controller) - Adds a new controller pkg
* [operator-sdk add crd](../operator-sdk_add_crd) - Adds a Custom Resource Definition (CRD) and the Custom Resource (CR) files

35 changes: 0 additions & 35 deletions website/content/en/docs/cli/operator-sdk_add_crd.md

This file was deleted.

0 comments on commit ae62b1a

Please sign in to comment.