mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
fix func name NewCreateCreateDeploymentOptions
This commit is contained in:
parent
1c11ff7a26
commit
bd17ef4f76
@ -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
Block a user