Skip to content

List operator-backed services in the sidebar#3508

Merged
datho7561 merged 1 commit intoredhat-developer:mainfrom
datho7561:3494-list-services
Nov 2, 2023
Merged

List operator-backed services in the sidebar#3508
datho7561 merged 1 commit intoredhat-developer:mainfrom
datho7561:3494-list-services

Conversation

@datho7561
Copy link
Copy Markdown
Contributor

Closes #3494

Signed-off-by: David Thompson davthomp@redhat.com

Closes redhat-developer#3494

Signed-off-by: David Thompson <davthomp@redhat.com>
@datho7561
Copy link
Copy Markdown
Contributor Author

datho7561 commented Nov 1, 2023

To test:

  1. Install an operator onto the cluster that supports running an instance of a service. For instance, I used the Enterprise MongoDB Operator. I did this through the OpenShift web console
  2. Create an instance of the service. Right click on the cluster in the Application Explorer in the sidebar, then select "Create Service" > "Operator-backed service"
  3. Go through the wizard and create a service
  4. The service should appear in the Application Explorer sidebar (you will need to expand the project)

@datho7561
Copy link
Copy Markdown
Contributor Author

@vrubezhny let me know if you don't have time to review this (the setup might take a while). Mohit wants this as part of the release today, so I might go ahead and merge it either way.

@vrubezhny
Copy link
Copy Markdown
Contributor

@vrubezhny let me know if you don't have time to review this (the setup might take a while). Mohit wants this as part of the release today, so I might go ahead and merge it either way.

Reviewing it

Copy link
Copy Markdown
Contributor

@vrubezhny vrubezhny left a comment

Choose a reason for hiding this comment

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

Create Service -> Create Operator-Backed Service action actually hasn't created any service for me, instead it shown me a list of Service Kinds for a cluster and, once I selected a kind, it shown me a sample YAML file that (after some editing) I could use to create a service using Console Dashboard (opened in browser).
After the service was created on the specified Cluster project and refreshing the OS Tools Application Explorer it was shown in the Application Explorer Tree.

Maybe I should have selected some other kind that could show a form to configure and finally create a service?

@datho7561
Copy link
Copy Markdown
Contributor Author

Maybe I should have selected some other kind that could show a form to configure and finally create a service?

This is working as expected, although I guess the workflow is not intuitive.

The idea is that you modify any details in the YAML it gives you to, then you save the file and run the command "OpenShift: Create" from the command palette to create the service (this runs the command kubectl create -f $FILENAME on the file). In this PR, I made it so that a CodeLens (similar to Code Mining from Eclipse) appears at the top of the YAML, and when you click it it runs "OpenShift: Create".

It would be nice to provide a proper form to provide the details for the service, but the issue is that in order to access the full list of information needed for this form, you need to be logged in as a cluster administrator. If you are logged in as a cluster administrator, it should show a proper form instead of just the YAML.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

List running operator-backed services in Application Explorer

2 participants