Merge pull request #91931 from lixiaobing1/lxb-deploy

fix func name NewCreateCreateDeploymentOptions
This commit is contained in:
Kubernetes Prow Robot
2020-10-15 14:43:25 -07:00
committed by GitHub

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,