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

ClusterRole Backend Implementation #436

Closed
KaradzaJuraj opened this issue Jul 16, 2024 · 5 comments · Fixed by #665 · May be fixed by #668
Closed

ClusterRole Backend Implementation #436

KaradzaJuraj opened this issue Jul 16, 2024 · 5 comments · Fixed by #665 · May be fixed by #668
Assignees
Labels
controller Update on controller go Pull requests that update Go code good first issue Good for newcomers kubernetes k8s related issues

Comments

@KaradzaJuraj
Copy link
Collaborator

When fetching resources for a Module, some resources are supported to return details about a specific resource. For example, the endpoint for Deployments will return more information about pods and their statuses, and the endpoint for Services will return information about the ports.

If you want to fetch information about a Deployment from the default namespace called demo-app you would call:

/resources?group=apps&version=v1&kind=Deployment&name=demo-app&namespace=default

The goal of the issue is to support ClusterRole on the same endpoint. The endpoint for fetching ClusterRole data would look like this:

 /resources?group=apps&version=v1&kind=ClusterRole&name=&namespace=

The handler function for the endpoint is here, and you will have to handle a new type here.

The endpoint should return data about its name, rules, resources, verbs… (you can find more about it here

Refer to this PR on adding new types #259

@KaradzaJuraj KaradzaJuraj added good first issue Good for newcomers go Pull requests that update Go code controller Update on controller kubernetes k8s related issues labels Jul 16, 2024
@jplourenco1
Copy link
Contributor

I would like to work on this, already worked on another backend, this seems to be very similar

@petar-cvit
Copy link
Collaborator

Sure @jplourenco1!

@petar-cvit
Copy link
Collaborator

@jplourenco1, do you have any updates on the issue? Let us know if you have any questions

@nikonhub
Copy link
Contributor

Hello,

Is this issue still in development? I'd be glad to work on it, if not.

@petar-cvit
Copy link
Collaborator

@nikonhub feel free to take it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
controller Update on controller go Pull requests that update Go code good first issue Good for newcomers kubernetes k8s related issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants