mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Merge pull request #32176 from lojies/addaliasforcreateservice
Automatic merge from submit-queue add alias svc for create_service.go add alias 'svc' for service in create_service.go so that alias 'svc' can be used and also can be seen in help message's Aliases like below: ```shell $ kubectl create svc -h Create a service using specified subcommand. Aliases: service, svc Available Commands: clusterip Create a clusterIP service. loadbalancer Create a LoadBalancer service. nodeport Create a NodePort service. Usage: kubectl create service [options] ```
This commit is contained in:
commit
5cb9b3a3b7
@ -31,9 +31,10 @@ import (
|
||||
// NewCmdCreateService is a macro command to create a new service
|
||||
func NewCmdCreateService(f *cmdutil.Factory, cmdOut io.Writer) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "service",
|
||||
Short: "Create a service using specified subcommand.",
|
||||
Long: "Create a service using specified subcommand.",
|
||||
Use: "service",
|
||||
Aliases: []string{"svc"},
|
||||
Short: "Create a service using specified subcommand.",
|
||||
Long: "Create a service using specified subcommand.",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
cmd.Help()
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user