Skip to content

Commit 0a20321

Browse files
authored
Merge pull request kubernetes#91931 from lixiaobing1/lxb-deploy
fix func name NewCreateCreateDeploymentOptions
2 parents fd5d610 + bd17ef4 commit 0a20321

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

staging/src/k8s.io/kubectl/pkg/cmd/create/create_deployment.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ type CreateDeploymentOptions struct {
7979
genericclioptions.IOStreams
8080
}
8181

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

0 commit comments

Comments
 (0)