Allow the usage of kubectl logs with label selector and container name

pull/6/head
Derek Carr 2017-04-10 13:14:47 -04:00
parent 3f941ac16c
commit 9c956c2170
1 changed files with 0 additions and 3 deletions

View File

@ -187,9 +187,6 @@ func (o *LogsOptions) Complete(f cmdutil.Factory, out io.Writer, cmd *cobra.Comm
if logOptions.Follow {
return cmdutil.UsageError(cmd, "only one of follow (-f) or selector (-l) is allowed")
}
if len(logOptions.Container) != 0 {
return cmdutil.UsageError(cmd, "a container cannot be specified when using a selector (-l)")
}
if logOptions.TailLines == nil {
logOptions.TailLines = &selectorTail
}