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

add admin component #569

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

katherinelc321
Copy link
Collaborator

@katherinelc321 katherinelc321 commented Sep 5, 2024

What this PR does

Adds a new folder for the admin api
Compiling and testing locally works with this:
curl -X GET "0.0.0.0:8443/v1/ocm/clusters?api-version=2024-06-10-preview"

Jira: https://issues.redhat.com/browse/ARO-9997
Link to demo recording:

Special notes for your reviewer

admin/main.go Outdated Show resolved Hide resolved
admin/main.go Outdated Show resolved Hide resolved
admin/pkg/admin/routes.go Outdated Show resolved Hide resolved
admin/pkg/admin/adminResourceList.go Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Up to you to decide (because the goal can totally change), but let's say that the goal of this Geneva Action is to get a list of all clusters from OCM. This will probably look something like:

GET /v1/ocm/clusters

With room for a future Geneva Action to provide cluster_id or cluster_name, like

GET /v1/ocm/clusters/id/${ID}
GET /v1/ocm/clusters?name=mycluster

I think this workload's "API" will be radically different from the RP/frontend

Copy link

Please rebase pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants