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

CRDs are loaded incorrectly into metadata registry, cause sporadic "Jump Owner" issues #3044

Open
ivant opened this issue Dec 29, 2024 · 0 comments · May be fixed by #3045
Open

CRDs are loaded incorrectly into metadata registry, cause sporadic "Jump Owner" issues #3044

ivant opened this issue Dec 29, 2024 · 0 comments · May be fixed by #3045

Comments

@ivant
Copy link

ivant commented Dec 29, 2024

Describe the bug

"Jump Owner" feature works briefly after startup on CRDs, and then stops working, reporting an error message (at the bottom of the screen and in the log):

😡 Watcher failed for example.com/v1/bar.example.com -- the server could not find the requested resource (get bar.example.com.example.com test3)

Note that the name of the resource type it tries to get (example.com/v1/bar.example.com) is incorrect: it contains .example.com suffix which it shouldn't.

This issue is possibly related to #3025 and #2936, likely caused by the same bug.

To Reproduce

Steps to reproduce the behavior:

  1. Start with K9s opening at the list of some CRD type (example.com/v1/Foo) objects that have another CRD type (example.com/v1/Bar) objects assigned as owner.
  2. Press Shift-J to jump to the owner type. Observe that it was successful.
  3. Wait 60 seconds.
  4. Press Shift-J to jump to the owner type. Usually this fails for me (error is shown and logged, empty list for the owner CRD is shown), but occasionally it succeeds. In this case, go back to the example.com/v1/Foo list by pressing Escape, and repeating step 4 a few times until it fails.

Historical Documents

10:49PM ERR Watcher failed for example.com/v1/bar.example.com -- the server could not find the requested resource (get bar.example.com.example.com test3) error="the server could not find the requested resource (get bar.example.com.example.com test3)"

Expected behavior

Jumping to owner works predictably with CRDs.

Versions (please complete the following information):

  • OS: OSX 14.6.1 (23G93)
  • K9s: 0.32.7
  • K8s: v1.26.4+k3s1
@ivant ivant linked a pull request Dec 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant