fix func name NewCreateCreateDeploymentOptions

Kubernetes-commit: bd17ef4f767a21868edafa19d7596e8df914b2db
This commit is contained in:
lixiaobing1 2020-06-09 14:35:15 +08:00 committed by Kubernetes Publisher
parent 9b49957d4e
commit d674eb771e
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ type CreateDeploymentOptions struct {
genericclioptions.IOStreams
}
func NewCreateCreateDeploymentOptions(ioStreams genericclioptions.IOStreams) *CreateDeploymentOptions {
func NewCreateDeploymentOptions(ioStreams genericclioptions.IOStreams) *CreateDeploymentOptions {
return &CreateDeploymentOptions{
Port: -1,
Replicas: 1,
@ -91,7 +91,7 @@ func NewCreateCreateDeploymentOptions(ioStreams genericclioptions.IOStreams) *Cr
// NewCmdCreateDeployment is a macro command to create a new deployment.
// This command is better known to users as `kubectl create deployment`.
func NewCmdCreateDeployment(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command {
o := NewCreateCreateDeploymentOptions(ioStreams)
o := NewCreateDeploymentOptions(ioStreams)
cmd := &cobra.Command{
Use: "deployment NAME --image=image -- [COMMAND] [args...]",
DisableFlagsInUseLine: true,