Skip to content

Commit 429c43c

Browse files
odralilic
authored andcommitted
cmd: adds all possible types (--type arg) when showing the help message from the "new" subcommand (#895)
This way the user is aware all available operator types when running `operator-sdk new --help`
1 parent 121664e commit 429c43c

File tree

1 file changed

+1
-1
lines changed
  • commands/operator-sdk/cmd

1 file changed

+1
-1
lines changed

commands/operator-sdk/cmd/new.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ generates a skeletal app-operator application in $GOPATH/src/github.com/example.
5151

5252
newCmd.Flags().StringVar(&apiVersion, "api-version", "", "Kubernetes apiVersion and has a format of $GROUP_NAME/$VERSION (e.g app.example.com/v1alpha1)")
5353
newCmd.Flags().StringVar(&kind, "kind", "", "Kubernetes CustomResourceDefintion kind. (e.g AppService)")
54-
newCmd.Flags().StringVar(&operatorType, "type", "go", "Type of operator to initialize (e.g \"ansible\")")
54+
newCmd.Flags().StringVar(&operatorType, "type", "go", "Type of operator to initialize (choices: \"go\", \"ansible\" or \"helm\")")
5555
newCmd.Flags().BoolVar(&skipGit, "skip-git-init", false, "Do not init the directory as a git repository")
5656
newCmd.Flags().BoolVar(&generatePlaybook, "generate-playbook", false, "Generate a playbook skeleton. (Only used for --type ansible)")
5757
newCmd.Flags().BoolVar(&isClusterScoped, "cluster-scoped", false, "Generate cluster-scoped resources instead of namespace-scoped")

0 commit comments

Comments
 (0)