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 list Secrets and ConfigMaps with k2d #2238

Open
deviantony opened this issue Oct 3, 2023 · 4 comments
Open

Unable to list Secrets and ConfigMaps with k2d #2238

deviantony opened this issue Oct 3, 2023 · 4 comments
Labels
bug Something isn't working question Further information is requested

Comments

@deviantony
Copy link




Describe the bug
Hello there! I'm working on k2d, a Kubernetes API translator: https://github.com/portainer/k2d

This projects aims to translate Kubernetes API calls to Docker resources. It works great with Kubernetes clients such as kubectl and Lens/OpenLens but for some reasons when I try to use k9s I'm getting some errors when trying to access Secrets and ConfigMaps. Other resources are displaying fine.

I'm getting the following errors when trying to access the Secret and ConfigMap resources using k9s:

For secrets:

ERR Watcher failed for v1/secrets -- no kind "SecretList" is registered for version "v1" in scheme "pkg/runtime/scheme.go:100"

For configmaps:

ERR Watcher failed for v1/configmaps -- no kind "ConfigMapList" is registered for version "v1" in scheme "pkg/runtime/scheme.go:100"

I'm trying to understand whether this is coming from k9s directly or if k2d is missing something in the response format that k9s expects. I have found a similar issue with an older version of k9s but this is not giving any information: #427

To Reproduce
Steps to reproduce the behavior:

  1. Start k2d and retrieve the kubeconfig (see https://docs.k2d.io/quick-start-guide#installation and https://docs.k2d.io/quick-start-guide#usage)
  2. Start k9s
  3. Try to list Secret or ConfigMap resources
  4. See error

Expected behavior
I expect to be able to list ConfigMap and Secret resources.

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

Versions (please complete the following information):

  • OS: Linux AMD64
  • K9s: v0.27.4
  • k2d: 1.0.0-beta
@derailed
Copy link
Owner

Hum.. K9s uses the dynamic client api to render secret/cm/crd/... these calls come back as a table with col/row vs standard openapi json. I haven't played with k2d as of yet so not sure what could be the issue.

@derailed derailed added bug Something isn't working question Further information is requested labels Nov 10, 2023
@deviantony
Copy link
Author

@derailed thanks for the update, could you point me at the location in k9s code where this is done? This might help me get a better understanding of the format the k2d should return.

@derailed
Copy link
Owner

@arorashamik
Copy link

arorashamik commented Apr 17, 2024

I'm having this same issue of not able to list configmaps with k9s verison v0.31.9
Screenshot 2024-04-17 at 10 17 48 AM

Running kubectl get cm -n returns the configmaps just fine. Just its just k9s not able to render them for some reason

Screenshot 2024-04-17 at 10 21 06 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants