cyclops icon indicating copy to clipboard operation
cyclops copied to clipboard

Implement resource details for Secrets

Open petar-cvit opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. 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 form 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 Secrets on the same endpoint. The endpoint for fetching Secret data would look like this: /resources?group=&version=v1&kind=Secret&name=&namespace=

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

You can add all the keys of the Secret in the response but not the values. We don't want to show the values since they are secret.

Refer to this PR on adding new types #259

petar-cvit avatar May 16 '24 18:05 petar-cvit

@petar-cvit I would like to take this issue

Sheikh-Abubaker avatar May 16 '24 19:05 Sheikh-Abubaker

Hey @Sheikh-Abubaker, you can take this one

petar-cvit avatar May 16 '24 20:05 petar-cvit

Hey @Sheikh-Abubaker, you can take this one

Thank you!!

Sheikh-Abubaker avatar May 16 '24 20:05 Sheikh-Abubaker