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 get pods when using kubectl describe node #516

Closed
MaxFedotov opened this issue Aug 28, 2024 · 0 comments · Fixed by #517
Closed

Unable to get pods when using kubectl describe node #516

MaxFedotov opened this issue Aug 28, 2024 · 0 comments · Fixed by #517
Assignees
Labels
bug Something isn't working

Comments

@MaxFedotov
Copy link
Collaborator

Bug description

After updating from capsule-proxy v0.5.0 to v0.7.0 users lost the ability to get a list of pods on nodes when using kubectl describe node

The following error can be found when using -v 10 for this command:

I0828 13:07:53.486929   87563 request.go:1212] Response Body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"pods is forbidden: User \"foo\" cannot list resource \"pods\" in API group \"\" at the cluster scope","reason":"Forbidden","details":{"kind":"pods"},"code":403}

This regression was introduced by this commit, which removed proxy module for pods from internal/webserver/webserver.go file:

-               pod.Get(n.reader),

How to reproduce

kubectl describe node {nodeName} -v 10

Expected behavior

Users should be able to see pods running on the node

Logs

I0828 13:07:53.486929   87563 request.go:1212] Response Body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"pods is forbidden: User \"foo\" cannot list resource \"pods\" in API group \"\" at the cluster scope","reason":"Forbidden","details":{"kind":"pods"},"code":403}

Additional context

  • Capsule-Proxy version: (capsule-proxy --version): v0.7.0
  • Helm Chart version: (helm list -n capsule-system)
  • Kubernetes version: (kubectl version)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants