fix func name NewCreateCreateDeploymentOptions
Kubernetes-commit: bd17ef4f767a21868edafa19d7596e8df914b2db
This commit is contained in:
parent
9b49957d4e
commit
d674eb771e
|
@ -79,7 +79,7 @@ type CreateDeploymentOptions struct {
|
||||||
genericclioptions.IOStreams
|
genericclioptions.IOStreams
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewCreateCreateDeploymentOptions(ioStreams genericclioptions.IOStreams) *CreateDeploymentOptions {
|
func NewCreateDeploymentOptions(ioStreams genericclioptions.IOStreams) *CreateDeploymentOptions {
|
||||||
return &CreateDeploymentOptions{
|
return &CreateDeploymentOptions{
|
||||||
Port: -1,
|
Port: -1,
|
||||||
Replicas: 1,
|
Replicas: 1,
|
||||||
|
@ -91,7 +91,7 @@ func NewCreateCreateDeploymentOptions(ioStreams genericclioptions.IOStreams) *Cr
|
||||||
// NewCmdCreateDeployment is a macro command to create a new deployment.
|
// NewCmdCreateDeployment is a macro command to create a new deployment.
|
||||||
// This command is better known to users as `kubectl create deployment`.
|
// This command is better known to users as `kubectl create deployment`.
|
||||||
func NewCmdCreateDeployment(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command {
|
func NewCmdCreateDeployment(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command {
|
||||||
o := NewCreateCreateDeploymentOptions(ioStreams)
|
o := NewCreateDeploymentOptions(ioStreams)
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "deployment NAME --image=image -- [COMMAND] [args...]",
|
Use: "deployment NAME --image=image -- [COMMAND] [args...]",
|
||||||
DisableFlagsInUseLine: true,
|
DisableFlagsInUseLine: true,
|
||||||
|
|
Loading…
Reference in New Issue