K9s: expecting a TableRow but got *unstructured.Unstructured for some objects

Created on 6 Jan 2020  路  3Comments  路  Source: derailed/k9s

Describe the bug
since 0.11.0 (maybe earlier) some k8s objects are not displaying

To Reproduce
ex. ":secret" gives expecting a TableRow but got *unstructured.Unstructured error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

  • OS: OSX Catalina
  • K9s 0.11.0
  • K8s 1.16.2 (also on other cluster: 1.15.3)

Thank you!

bug

Most helpful comment

@pvlvsk @pgpx Thank you both for filing this! In my excitement in the last drop, I've missed it, so that's on me.

@paivagustavo Thank you for the PR! I think the crd renderer is not what we want here. I've made a mistake in the prev drop and remove code that should have been there. What we really need for these is indeed the generic render ie a table as we need more than name and ts. Does this make sense? I push a fix in a bit.

All 3 comments

I also get this for :cm, and both work on 0.10.10 on my Mac (I forked derailed/homebrew-k9s and temporarily switched to it: brew uninstall k9s && brew untap derailed/k9s && brew tap pgpx/k9s && brew install k9s)

I think that the generic renderer must be the same as the CRD renderer. It solved the problem for me.

Friendly ping to @derailed :)

@pvlvsk @pgpx Thank you both for filing this! In my excitement in the last drop, I've missed it, so that's on me.

@paivagustavo Thank you for the PR! I think the crd renderer is not what we want here. I've made a mistake in the prev drop and remove code that should have been there. What we really need for these is indeed the generic render ie a table as we need more than name and ts. Does this make sense? I push a fix in a bit.

Was this page helpful?
0 / 5 - 0 ratings