lensapp / lens

Lens - The way the world runs Kubernetes
https://k8slens.dev/
MIT License
22.57k stars 1.47k forks source link

Download All Logs only downloading Visible Logs #8104

Open michaelmworthington opened 1 month ago

michaelmworthington commented 1 month ago

Describe the bug When viewing logs for a pod, I have a need to download the entire log for the pod. We have batch jobs that run and need to see log for the whole job.

After upgrading to 2024.9.300059-latest (with the new UI), it appears that both download options are behaving the same, i.e. selecting All Logs only downloads Visible logs.

Original feature = https://github.com/lensapp/lens/pull/5970

I found a few other bug reports related to multi-container pods (leading to https://github.com/lensapp/lens/pull/7413), but I think my issue is a bit different.   To Reproduce Steps to reproduce the behavior:

  1. Go to Pods
  2. Click on Tail Log
  3. Select 'Download All Logs'
  4. Downloaded file only contains visible log contents

Expected behavior Entire log is downloaded in the file

Screenshots Reference https://github.com/lensapp/lens/pull/5970

Environment (please complete the following information):

clrothmann commented 1 month ago

Thank you @michaelmworthington for your feedback! Good catch! This was known to us and a fix has already been merged and will be rolled out with the next patch release. Once again, thank you for reporting this. I'll inform you here once it's published.