Merge pull request #99581 from mengjiao-liu/kubectl-default-container-behavior

update kubectl cp flag description

Kubernetes-commit: 0121c51d81d7905448a925980ceb996dbaa2b318
This commit is contained in:
Kubernetes Publisher 2021-03-02 20:15:19 -08:00
commit e032aa6f92
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ func NewCmdCp(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.C
cmdutil.CheckErr(o.Run(args))
},
}
cmd.Flags().StringVarP(&o.Container, "container", "c", o.Container, "Container name. If omitted, the first container in the pod will be chosen")
cmd.Flags().StringVarP(&o.Container, "container", "c", o.Container, "Container name. If omitted, prefer to use the kubectl.kubernetes.io/default-container annotation or the first container in the pod will be chosen")
cmd.Flags().BoolVarP(&o.NoPreserve, "no-preserve", "", false, "The copied file/directory's ownership and permissions will not be preserved in the container")
return cmd