Commit 5cb9b3a3 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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] ```
parents 0c63bd03 c8fe895d
...@@ -32,6 +32,7 @@ import ( ...@@ -32,6 +32,7 @@ import (
func NewCmdCreateService(f *cmdutil.Factory, cmdOut io.Writer) *cobra.Command { func NewCmdCreateService(f *cmdutil.Factory, cmdOut io.Writer) *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "service", Use: "service",
Aliases: []string{"svc"},
Short: "Create a service using specified subcommand.", Short: "Create a service using specified subcommand.",
Long: "Create a service using specified subcommand.", Long: "Create a service using specified subcommand.",
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment