Thanks to visit codestin.com
Credit goes to github.com

Skip to content

K9s hangs when pod does not have logs #256

@ncsibra

Description

@ncsibra




Describe the bug
Hang when a pod does not have logs.
Debug log only shows:

11:16AM DBG >> TableView handled l
11:16AM DBG Tailing logs for "prod"/"test-service-7b77dc78dc-4kq56":"test-service"
11:16AM DBG Log Options 200

To Reproduce
Steps to reproduce the behavior:

  1. Go to a running pod without any log
  2. Press l
  3. K9S will hang

Expected behavior
Show the "Doh, no logs" message

Versions (please complete the following information):

  • OS: [e.g. Linux]
  • K9s [e.g. 0.7.11]
  • K8s [e.g. 1.11.8]

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions