Skip to content

Commit e973a71

Browse files
authored
Merge pull request #36101 from rishumehra/search
[RHDEVDOCS-2340] Document ability to quickly search for components and add to your projects from the Topology view
2 parents 89fbd58 + f506361 commit e973a71

8 files changed

+40
-21
lines changed

applications/odc-viewing-application-composition-using-topology-view.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ include::modules/odc-interacting-with-applications-and-components.adoc[leveloffs
2222

2323
include::modules/odc-scaling-application-pods-and-checking-builds-and-routes.adoc[leveloffset=+1]
2424

25+
include::modules/odc-adding-components-to-an-existing-project.adoc[leveloffset=+1]
26+
2527
include::modules/odc-grouping-multiple-components.adoc[leveloffset=+1]
2628

2729
include::modules/odc-adding-services-to-application.adoc[leveloffset=+1]

images/odc_add_to_project.png

820 Bytes
Loading

images/odc_app_grouping_label.png

21.3 KB
Loading

images/odc_quick_search.png

44.5 KB
Loading

modules/adding-to-a-project.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@ navigation menu.
1414

1515
. At the top of the page, select the name of the project that you want to add to.
1616

17-
. Click on a method for adding to your project, and then follow the workflow.
17+
. Click a method for adding to your project, and then follow the workflow.
18+
19+
[NOTE]
20+
====
21+
You can also add components to the topology using quick search.
22+
====
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Module included in the following assemblies:
2+
//
3+
// applications/application_life_cycle_management/odc-viewing-application-composition-using-topology-view.adoc
4+
5+
[id="odc-adding-components-to-an-existing-project_{context}"]
6+
= Adding components to an existing project
7+
8+
.Procedure
9+
10+
. Click *Add to Project* (image:odc_add_to_project.png[title="Add to Project"]) next to left navigation pane or press kbd:[Ctrl+Space]
11+
. Search for the component and select *Create* or press kbd:[Enter] to add the component to the project and see it in the topology *Graph view*.
12+
13+
.Adding component via quick search
14+
image::odc_quick_search.png[]
15+
16+
Alternatively, you can also use the *Import from Git*, *Container Image*, *Database*, *From Catalog*, *Operator Backed*, *Helm Charts*, *Samples*, or *Upload JAR file* options in the context menu by right-clicking in the topology *Graph view* to add a component to your project.
17+
18+
.Context menu to add services
19+
image::odc_context_project.png[]
Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
[id="odc-grouping-multiple-components_{context}"]
22
= Grouping multiple components within an application
33

4-
You can use the *+Add* view to add multiple components or services to your project and use the *Topology* view to group applications and resources within an application group.
5-
The following procedure adds a MariaDB database service to an existing application with a Node.js component.
6-
4+
You can use the *+Add* view to add multiple components or services to your project and use the topology *Graph view* to group applications and resources within an application group.
75

86
.Prerequisites
97

10-
* Ensure that you have created and deployed a Node.js application on {product-title} using the *Developer* perspective.
8+
* You have created and deployed minimum two or more components on {product-title} using the *Developer* perspective.
119

1210
.Procedure
1311

14-
. Create and deploy the MariaDB service to your project:
15-
.. In the *Developer* perspective, navigate to the *+Add* view and select the *From Catalog* option to view all available services in the *Developer Catalog*.
16-
.. Select *Databases* to list all the database services and then click *MariaDB* option to see the details for the service.
17-
.. Click *Instantiate Template* to see an automatically populated template with details for the MariaDB service, and then click *Create* to create and view the MariaDB service in the *Topology* view.
18-
19-
. To add the MariaDB service to the existing application group, press kbd:[Shift]+ drag the *mariadb* pod to the application group that contains the Node.Js component. The MariaDB service is added to the existing application group.
20-
21-
. Click the MariaDB service node and confirm that the `app.kubernetes.io/part-of=<application-name>` label is in the *Labels* section in the *Overview* Panel. Adding a component to an application group automatically adds the required labels to the component.
12+
* To add a service to the existing application group, press kbd:[Shift]+ drag it to the existing application group. Dragging a component and adding it to an application group adds the required labels to the component.
2213
+
2314
.Application grouping
2415
image::odc_app_grouping_label.png[]
2516

17+
Alternatively, you can also add the component to an application as follows:
18+
19+
. Click the service pod to see the *Overview* panel to the right.
20+
21+
. Click the *Actions* drop-down menu and select *Edit Application Grouping*.
22+
23+
. In the *Edit Application Grouping* dialog box, click the *Application* drop-down list, and select an appropriate application group.
24+
25+
. Click *Save* to add the service to the application group.
26+
2627
You can remove a component from an application group by selecting the component and using kbd:[Shift]+ drag to drag it out of the application group.

modules/odc-interacting-with-applications-and-components.adoc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,3 @@ The application resource name is appended with indicators for the different type
4242
====
4343
Serverless applications take some time to load and display on the *Graph view*. When you deploy a serverless application, it first creates a service resource and then a revision. After that, it is deployed and displayed on the *Graph view*. If it is the only workload, you might be redirected to the *Add* page. After the revision is deployed, the serverless application is displayed on the *Graph view*.
4444
====
45-
46-
[NOTE]
47-
====
48-
You can also use the context menu by right-clicking in the topology *Graph view* to add a service such as *Import from Git*, *Container Image*, *Database*, *From Catalog*, *Operator Backed*, *Helm Charts*, *Samples*, or *Upload JAR file* to your project.
49-
50-
.Context menu to add services
51-
image::odc_context_project.png[]
52-
====

0 commit comments

Comments
 (0)