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

UI representation for ClusterRoles #509

Closed
petar-cvit opened this issue Aug 16, 2024 · 4 comments
Closed

UI representation for ClusterRoles #509

petar-cvit opened this issue Aug 16, 2024 · 4 comments
Labels
good first issue Good for newcomers react typescript UI Update on the UI

Comments

@petar-cvit
Copy link
Collaborator

Some K8s components are supported to have a custom UI component, and those can be found here. The scope of this issue is to support ClusterRoles. The new ClusterRole component should be similar to other components we already have, so feel free to check the existing ones out.

The visual representation should look something like this:
image

You can fetch the data about a cluster role by calling the backend on

/api/resources?group=rbac.authorization.k8s.io&version=v1&kind=ClusterRole&name=&namespace=

You can test this using the k6-operator default template.

Refer to this PR on adding new UI components #330

Issue similar to #499

@petar-cvit petar-cvit added good first issue Good for newcomers UI Update on the UI typescript react labels Aug 16, 2024
@sarthakladhwe
Copy link
Contributor

sarthakladhwe commented Aug 16, 2024

Hi @petar-cvit, I’m encountering an issue where the API is returning null for my request. I’ve used the correct information from the resources listed at http://localhost:3000/api/modules/k6-operator/resources and formed the request URL as follows:

http://localhost:3000/api/resources?group=rbac.authorization.k8s.io&version=v1&kind=ClusterRole&name=k6-operator-manager-role&namespace=

Despite this, the response is still null. Could you help me troubleshoot this issue?

@petar-cvit
Copy link
Collaborator Author

Hey @sarthakladhwe, my bad. I mixed up which resources were supported on the backend. ClusterRoles are yet to be supported so this issue will have to wait until then

@sarthakladhwe
Copy link
Contributor

sarthakladhwe commented Aug 16, 2024

No worries! Just let me know when it's supported, I'd be eager to tackle it. There’s a workaround by parsing manifest YAML into a JS object, but I believe our resources APIs are better suited for that.

@petar-cvit
Copy link
Collaborator Author

Closed by #668

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers react typescript UI Update on the UI
Projects
None yet
Development

No branches or pull requests

2 participants