-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Switch over to new CLI and deprecate operator-sdk new --type=go
#3190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,6 +20,7 @@ import ( | |
| "github.com/operator-framework/operator-sdk/cmd/operator-sdk/bundle" | ||
| "github.com/operator-framework/operator-sdk/cmd/operator-sdk/completion" | ||
| "github.com/operator-framework/operator-sdk/cmd/operator-sdk/generate" | ||
| "github.com/operator-framework/operator-sdk/cmd/operator-sdk/new" | ||
| "github.com/operator-framework/operator-sdk/cmd/operator-sdk/olm" | ||
| "github.com/operator-framework/operator-sdk/cmd/operator-sdk/version" | ||
| "github.com/operator-framework/operator-sdk/internal/flags" | ||
|
|
@@ -33,9 +34,9 @@ import ( | |
| ) | ||
|
|
||
| var commands = []*cobra.Command{ | ||
| // Once the KB CLI is made the default, add the "new" command as a way to | ||
| // scaffold the legacy project layout and mark "new" as deprecated | ||
| // new.NewCmd() | ||
| // The "new" cmd provides a way to scaffold Helm/Ansible projects | ||
| // from the new CLI. | ||
| new.NewCmd(), | ||
|
|
||
| alpha.NewCmd(), | ||
| build.NewCmd(), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's a plugin issue right @estroz $ operator-sdk create api -h
Scaffold a Kubernetes API.
For project-specific information, run this command in the root directory of a
project.
Note: unable to find configuration file, project must be initialized
Usage:
operator-sdk create api [flags]
Flags:
-h, --help help for apiAnd inside a project: $ operator-sdk create api -h
Scaffold a Kubernetes API by creating a Resource definition and / or a Controller.
create resource will prompt the user for if it should scaffold the Resource and / or Controller. To only
scaffold a Controller for an existing Resource, select "n" for Resource. To only define
the schema for a Resource without writing a Controller, select "n" for Controller.
After the scaffold is written, api will run make on the project.
Usage:
operator-sdk create api [flags]
Examples:
# Create a frigates API with Group: ship, Version: v1beta1 and Kind: Frigate
operator-sdk create api --group ship --version v1beta1 --kind Frigate
...
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You need to set
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I saw: |
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.