You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/customizing-templates/ref-creating-templates.adoc
+19-17Lines changed: 19 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,19 +7,18 @@ You can create a Software Template by defining a `Template` object as a YAML fil
7
7
8
8
The `Template` object describes the Software Template and its metadata. It also contains required input variables and a list of actions that are executed by the scaffolding service.
9
9
10
-
.`Template` object example
11
10
[source,yaml]
12
11
----
13
12
apiVersion: scaffolder.backstage.io/v1beta3
14
13
kind: Template
15
14
metadata:
16
-
name: template-name # <1>
17
-
title: Example template # <2>
18
-
description: An example template for v1beta3 scaffolder. # <3>
15
+
name: template-name
16
+
title: Example template
17
+
description: An example template for v1beta3 scaffolder.
<2> Specify a title for the Software Template. This is the title that is visible on the Software Template tile in the *Self-service* view.
58
-
<3> Specify a description for the Software Template. This is the description that is visible on the Software Template tile in the *Self-service* view.
59
-
<4> Specify the ownership of the Software Template. The `owner` field provides information about who is responsible for maintaining or overseeing the Software Template within the system or organization. In the provided example, the `owner` field is set to `backstage/techdocs-core`. This means that this Software Template belongs to the `techdocs-core` project in the `backstage` namespace.
60
-
<5> Specify the component type. Any string value is accepted for this required field, but your organization should establish a proper taxonomy for these. {product} instances may read this field and behave differently depending on its value. For example, a `website` type component may present tooling in the {product} interface that is specific to just websites.
55
+
+
56
+
where:
57
+
58
+
`metadata.name`:: Enter a name for the Software Template.
59
+
`metadata.title`:: Enter a title for the Software Template. This is the title that is visible on the Software Template tile in the *Self-service* view.
60
+
`metadata.description`:: Enter a description for the Software Template. This is the description that is visible on the Software Template tile in the *Self-service* view.
61
+
`spec.owner`:: Enter the ownership of the Software Template. The `owner` field provides information about who is responsible for maintaining or overseeing the Software Template within the system or organization. In the provided example, the `owner` field is set to `backstage/techdocs-core`. This means that this Software Template belongs to the `techdocs-core` project in the `backstage` namespace.
62
+
`spec.type`:: Enter the component type. Any string value is accepted for this required field, but your organization should establish a proper taxonomy for these. {product} instances may read this field and behave differently depending on its value. For example, a `website` type component may present tooling in the {product} interface that is specific to just websites.
61
63
+
62
64
The following values are common for this field:
63
65
+
@@ -66,8 +68,8 @@ The following values are common for this field:
66
68
`website`:: A website.
67
69
`library`:: A software library, such as an npm module or a Java library.
68
70
--
69
-
<6> Use the `parameters` section to specify parameters for user input that are shown in a form view when a user creates a component by using the Software Template in the {product} console. Each `parameters` subsection, defined by a title and properties, creates a new form page with that definition.
70
-
<7> Use the `steps` section to specify steps that are executed in the backend. These steps must be defined by using a unique step ID, a name, and an action. You can view actions that are available on your {product} instance by visiting the URL `\https://<rhdh_url>/create/actions`.
71
-
<8> Use the `output` section to specify the structure of output data that is created when the template is used. The `output` section, particularly the `links` subsection, provides valuable references and URLs that users can utilize to access and interact with components that are created from the template.
72
-
<9> Provides a reference or URL to the repository associated with the generated component.
73
-
<10> Provides a reference or URL that allows users to open the generated component in a catalog or directory where various components are listed.
71
+
`spec.parameters`:: Use the `parameters` section to specify parameters for user input that are shown in a form view when a user creates a component by using the Software Template in the {product} console. Each `parameters` subsection, defined by a title and properties, creates a new form page with that definition.
72
+
`spec.steps`:: Use the `steps` section to specify steps that are executed in the backend. These steps must be defined by using a unique step ID, a name, and an action. You can view actions that are available on your {product} instance by visiting the URL `\https://<rhdh_url>/create/actions`.
73
+
`spec.output`:: Use the `output` section to specify the structure of output data that is created when the template is used. The `output` section, particularly the `links` subsection, provides valuable references and URLs that users can utilize to access and interact with components that are created from the template.
74
+
`spec.output.links.title`:: Provides a reference or URL to the repository associated with the generated component.
75
+
`spec.output.links.title`:: Provides a reference or URL that allows users to open the generated component in a catalog or directory where various components are listed.
Copy file name to clipboardExpand all lines: modules/importing-and-using-an-existing-template-for-faster-development/proc-creating-templates.adoc
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,8 +15,6 @@ Alternately, you can use the Template Editor to do any of the following actions:
15
15
16
16
.Procedure
17
17
18
-
To create a Software Template by using the Template Editor templates, complete the following steps:
19
-
20
18
. In your {product} navigation menu, click *Catalog > Self-service*. Alternatively, to go to *Self-service* page, in your header menu, click the (+) icon.
21
19
. Click the *More options* icon and select *Manage Templates*.
Copy file name to clipboardExpand all lines: modules/importing-and-using-an-existing-template-for-faster-development/proc-searching-and-filtering-software-templates.adoc
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,6 @@ You can search and filter for the Software Template that you want to use to crea
7
7
8
8
.Procedure
9
9
10
-
To search and filter for a Software Template, complete the following steps:
11
-
12
10
. In the {product} navigation menu, click *Catalog* > *Self-service*.
13
11
. Type the name of the template you are looking for in the *Search* box.
14
12
* If you are looking for templates in a certain category, you can use the *Categories* dropdown.
Copy file name to clipboardExpand all lines: modules/streamline-software-development-and-management/proc-enabling-and-authorizing-bulk-import-capabilities.adoc
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,10 @@ This feature is available for GitHub repositories and GitLab projects.
9
9
.Prerequisites
10
10
* For GitHub only: You have {integrating-with-github-book-link}#enabling-github-repository-discovery[enabled GitHub repository discovery].
11
11
12
-
13
12
.Procedure
14
13
. The Bulk Import plugins are installed but disabled by default.
15
14
To enable the `./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-bulk-import-backend-dynamic` and `./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-bulk-import` plugins, edit your `dynamic-plugins.yaml` with the following content:
16
15
+
17
-
.`dynamic-plugins.yaml` fragment
18
16
[source,yaml]
19
17
----
20
18
plugins:
@@ -26,7 +24,7 @@ plugins:
26
24
+
27
25
See {installing-and-viewing-plugins-book-link}[{installing-and-viewing-plugins-book-title}].
28
26
29
-
. Configure the required `bulk.import` RBAC permission for the users who are not administrators as follows:
27
+
. Configure the required `bulk.import` RBAC permission for the users who are not administrators as shown in the following code:
Copy file name to clipboardExpand all lines: modules/streamline-software-development-and-management/proc-managing-repositories-after-import-to-stay-organized.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ You can oversee and manage the Git repositories that are imported to the {produc
10
10
11
11
12
12
.Procedure
13
-
. Click *Bulk Import* in the left sidebar to display all the current GitHub repositories and GitLab projects that are being tracked as Import jobs, along with their status.
13
+
* Click *Bulk Import* in the left sidebar to display all the current GitHub repositories and GitLab projects that are being tracked as Import jobs, along with their status.
14
14
15
15
Added:: The Git repository is added to the {product-short} catalog after the import pull request is merged or if the Git repository already contained a `catalog-info.yaml` file during the bulk import.
16
16
Note that it may take a few minutes for the entities to be available in the catalog.
0 commit comments