From 0a33eeb176f60f15279dbec0dba410f9abbc5a7b Mon Sep 17 00:00:00 2001 From: "mengjiao.liu" Date: Mon, 1 Mar 2021 18:02:02 +0800 Subject: [PATCH] update kubectl cp --container flag description Kubernetes-commit: 6be7b00b455f632a92c2c9c1a3878ecf5201e955 --- pkg/cmd/cp/cp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/cp/cp.go b/pkg/cmd/cp/cp.go index 7790db53..871ff64b 100644 --- a/pkg/cmd/cp/cp.go +++ b/pkg/cmd/cp/cp.go @@ -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