Unable to filter workloads for faults
Describe the bug Unable to filter the workloads view for faults.
To Reproduce Steps to reproduce the behavior:
-
:wkto view workloads -
ctrl-fto toggle faults - 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
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