mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #89919 from mortenhauberg/remove-double-kubectl-from-output
Remove double `kubectl` from deprecation warning
This commit is contained in:
commit
39da2c0e9c
@ -174,10 +174,10 @@ func (p *ExecOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, argsIn []s
|
|||||||
if argsLenAtDash > -1 {
|
if argsLenAtDash > -1 {
|
||||||
p.Command = argsIn[argsLenAtDash:]
|
p.Command = argsIn[argsLenAtDash:]
|
||||||
} else if len(argsIn) > 1 {
|
} else if len(argsIn) > 1 {
|
||||||
fmt.Fprint(p.ErrOut, "kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl kubectl exec [POD] -- [COMMAND] instead.\n")
|
fmt.Fprint(p.ErrOut, "kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.\n")
|
||||||
p.Command = argsIn[1:]
|
p.Command = argsIn[1:]
|
||||||
} else if len(argsIn) > 0 && len(p.FilenameOptions.Filenames) != 0 {
|
} else if len(argsIn) > 0 && len(p.FilenameOptions.Filenames) != 0 {
|
||||||
fmt.Fprint(p.ErrOut, "kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl kubectl exec [POD] -- [COMMAND] instead.\n")
|
fmt.Fprint(p.ErrOut, "kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.\n")
|
||||||
p.Command = argsIn[0:]
|
p.Command = argsIn[0:]
|
||||||
p.ResourceName = ""
|
p.ResourceName = ""
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user