Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to filter workloads for faults #2453

Open
chauncey-garrett opened this issue Jan 9, 2024 · 1 comment
Open

Unable to filter workloads for faults #2453

chauncey-garrett opened this issue Jan 9, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@chauncey-garrett
Copy link




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

@derailed derailed added the enhancement New feature or request label Jan 9, 2024
@eiachh
Copy link
Contributor

eiachh commented Jan 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants