podlogs: adapt to modified error message

Commit 8a495cb5e4 changed the spelling of the error message that we
want to ignore. In case of version skew we suppress both the old and
new spelling.
This commit is contained in:
Patrick Ohly 2020-04-03 14:07:56 +02:00
parent 8ae26096f7
commit dbac2a369a

View File

@ -170,6 +170,7 @@ func CopyAllLogs(ctx context.Context, cs clientset.Interface, ns string, to LogO
// Same for attempts to read logs from a container that
// isn't ready (yet?!).
if !strings.HasPrefix(line, "rpc error: code = Unknown desc = Error: No such container:") &&
!strings.HasPrefix(line, "unable to retrieve container logs for ") &&
!strings.HasPrefix(line, "Unable to retrieve container logs for ") {
if first {
if to.LogWriter == nil {