Merge pull request #32060 from lojies/addaliasdeploy

Automatic merge from submit-queue

add alias deploy for deployment

deploy is also alias of deployment. add alias deploy for deployment so the help can see deploy in the Aliases like below:
```sh
k8s@k8s-node1:~/go/workspace/src/k8s.io/kubernetes/cmd/kubectl$ ./kubectl create dep -h
Create a deployment with the specified name.

Aliases:
deployment, dep, deploy
```
This commit is contained in:
Kubernetes Submit Queue 2016-09-13 00:29:31 -07:00 committed by GitHub
commit ba3ab80b09

View File

@ -40,7 +40,7 @@ var (
func NewCmdCreateDeployment(f *cmdutil.Factory, cmdOut io.Writer) *cobra.Command {
cmd := &cobra.Command{
Use: "deployment NAME --image=image [--dry-run]",
Aliases: []string{"dep"},
Aliases: []string{"deploy"},
Short: "Create a deployment with the specified name.",
Long: deploymentLong,
Example: deploymentExample,