Skip to content

Commit a38e609

Browse files
authored
commands/../new.go: Clarify flags use cases (#1046)
The --api-version and --kind flags are only supported for the ansible and helm type projects.
1 parent 9846078 commit a38e609

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

commands/operator-sdk/cmd/new.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ generates a skeletal app-operator application in $GOPATH/src/github.com/example.
4949
RunE: newFunc,
5050
}
5151

52-
newCmd.Flags().StringVar(&apiVersion, "api-version", "", "Kubernetes apiVersion and has a format of $GROUP_NAME/$VERSION (e.g app.example.com/v1alpha1)")
53-
newCmd.Flags().StringVar(&kind, "kind", "", "Kubernetes CustomResourceDefintion kind. (e.g AppService)")
52+
newCmd.Flags().StringVar(&apiVersion, "api-version", "", "Kubernetes apiVersion and has a format of $GROUP_NAME/$VERSION (e.g app.example.com/v1alpha1) - used with \"ansible\" or \"helm\" types")
53+
newCmd.Flags().StringVar(&kind, "kind", "", "Kubernetes CustomResourceDefintion kind. (e.g AppService) - used with \"ansible\" or \"helm\" types")
5454
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)")

0 commit comments

Comments
 (0)