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

Cronjob UI tab not namespaced #2687

Open
dal13002 opened this issue Dec 13, 2024 · 2 comments
Open

Cronjob UI tab not namespaced #2687

dal13002 opened this issue Dec 13, 2024 · 2 comments
Labels
bug Something isn't working frontend Issues related to the frontend

Comments

@dal13002
Copy link

Describe the bug

As of this pull request, we can now select a namespace from the filter search bar on almost any page (pods, deployments, secrets, etc..) and all api calls are being scoped to that namespace. This is great since we don't have to modify / mange "accessible namespaces" for non-admin users. What I've noticed is this feature is not happening in the "cronjobs" tab, and I am still getting errors trying to access cronjobs when I filter to a certain namespace.

To Reproduce

Steps to reproduce the bug:

  1. You have full access to "test" namespace and list all namespaces within the cluster
  2. There is nothing configured in "accessible namespaces" setting
  3. Create a cronjob in "test" namespace (ie use kubectl)
  4. Go to cronjob tab on headlamp -> add "test" to the namespace filter
  5. The UI seems to just load forever

Environment (please provide info about your environment):

  • Installation type: In cluster using helm
  • Headlamp Version: v0.27.0

Are you able to fix this issue?

No

Additional Context

N/A

@dal13002 dal13002 added the bug Something isn't working label Dec 13, 2024
@dosubot dosubot bot added the frontend Issues related to the frontend label Dec 13, 2024
@skoeva
Copy link
Contributor

skoeva commented Dec 30, 2024

Hi, are you still experiencing this issue? If so, would you be able to share more info about it (i.e. how long the table takes to load, how many cron jobs you have configured, or anything else that might be helpful)

@dal13002
Copy link
Author

Hi,
Yes I still see this issue. I have only 1 cronjob and it will load forever (the load icon never goes away). Basically:

  • if I give myself cluster-admin access, page will load immediately and I will see the 1 cronjob
  • if I give myself admin to just the "test" namespace (where the one cronjob lives), and list all namespaces permission- I can select the "test" namespace from the filter menu. But it will load forever. If I look at the network tab, I see 403 forbidden while calling api/batch/v1/cronjobs. I think this api call should be namespaced but it is not- for example, when I select the "test" namespace it should be calling something like api/batch/v1/namespace/test/cronjobs (I don't know the internal endpoints but something like that so it only targets that namespace the same way "pods" work)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend Issues related to the frontend
Projects
Development

No branches or pull requests

2 participants