k9s icon indicating copy to clipboard operation
k9s copied to clipboard

Unable to filter workloads for faults

Open chauncey-garrett opened this issue 2 years ago • 1 comments




Describe the bug Unable to filter the workloads view for faults.

To Reproduce Steps to reproduce the behavior:

  1. :wk to view workloads
  2. ctrl-f to toggle faults
  3. See error--all workloads are still visible

Historical Documents n/a

Expected behavior Workloads are filtered for faults.

Screenshots n/a

Versions (please complete the following information):

  • OS: 14.2.1 (23C71)
  • K9s: 0.31.1
  • K8s: v1.26.8-gke.200

Additional context n/a

chauncey-garrett avatar Jan 09 '24 19:01 chauncey-garrett

I am checking this but if anyone feels more competent feel free. The issue is in Workloads view the "VALID" header is not found because only the visible headers are present in the data. In other views like "Pods" the valid header is filled that the filter checks.

In ui/table_helper.go validX := data.Header.IndexOf("VALID", true) if validX == -1 { return data }

Also the WK view has a status which knows if a pod is degraded or running

eiachh avatar Jan 20 '24 20:01 eiachh