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

Role Backend Implementation #435

Closed
KaradzaJuraj opened this issue Jul 16, 2024 · 0 comments · Fixed by #467
Closed

Role Backend Implementation #435

KaradzaJuraj opened this issue Jul 16, 2024 · 0 comments · Fixed by #467
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 Role on the same endpoint. The endpoint for fetching Role data would look like this:

 /resources?group=apps&version=v1&kind=Role&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, namespace, 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
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.

1 participant