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: assemblies/assembly-configuring-templates.adoc
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,25 @@
1
1
:_mod-docs-content-type: ASSEMBLY
2
2
:context: configuring-templates
3
3
[id="{context}"]
4
-
= Configuring templates
4
+
= About Software Templates
5
5
6
-
Configure templates to create software components, and publish these components to different locations, such as the {product} software catalog, or Git repositories.
6
+
Software Templates in {product} provide a streamlined way to create software components and publish them to different version control repositories like Git. Platform engineers create and maintain Software Templates in {product}.
7
7
8
-
A template is a form composed of different UI fields that is defined in a YAML file. Templates include _actions_, which are steps that are executed in sequential order and can be executed conditionally.
8
+
You can configure Software Templates to create software components, and publish these components to Git repositories. Once the components are published to Git repositories, register these components in the Software Catalog.
9
+
10
+
A template is a form composed of different UI fields that is defined in a YAML file. Software Templates include _actions_, which are steps that are executed in sequential order and can be executed conditionally.
11
+
12
+
* See link:https://developers.redhat.com/articles/2025/03/17/10-tips-better-backstage-software-templates#[10 tips for better Backstage Software Templates].
Copy file name to clipboardExpand all lines: modules/customizing-templates/proc-adding-templates.adoc
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,9 @@
4
4
5
5
:_mod-docs-content-type: PROCEDURE
6
6
[id="proc-adding-templates_{context}"]
7
-
= Importing an existing template to {product}
7
+
= Importing an existing Software Template to {product}
8
8
9
-
You can add an existing template to your {product} instance by using the Catalog Processor.
9
+
You can add an existing Software Template to your {product} instance by using the Catalog Processor.
10
10
11
11
.Prerequisites
12
12
@@ -15,7 +15,7 @@ You can add an existing template to your {product} instance by using the Catalog
15
15
16
16
.Procedure
17
17
18
-
* In the `{my-app-config-file}` configuration file, modify the `catalog.rules` section to include a rule for templates, and configure the `catalog.locations` section to point to the template that you want to add, as shown in the following example:
18
+
* In the `{my-app-config-file}` configuration file, modify the `catalog.rules` section to include a rule for Software Templates, and configure the `catalog.locations` section to point to the Software Template that you want to add, as shown in the following example:
= Creating a new software component using Software Templates
8
+
9
+
You can create a new software component using the standard Software Templates that the platform engineers have created. The scaffolding process runs in your {product} instance.
10
+
11
+
.Procedure
12
+
13
+
. In your {product} navigation menu, click *Catalog* > *Self-service*.
14
+
. On the *Self-service* page, click *Choose* on the *Templates* tile to initiate the scaffolding process for a template.
15
+
. Follow the wizard instructions as you enter the required details. You can choose parameters from a set of pre-defined options.
16
+
* Optional: In the *Deployment Information* step, you have an option to *Create Workbench for OpenShift AI*.
17
+
+
18
+
[NOTE]
19
+
====
20
+
This step is available only for a few templates.
21
+
====
22
+
. In the *Review* step, verify the parameters you have entered and click *Create*.
23
+
+
24
+
[NOTE]
25
+
====
26
+
* You can click *Cancel* to abort the software component creation during the template running step only if the current step supports the abort. The abort signal is then sent to a task and none of the following steps are executed.
27
+
* During the creation of the software component, click *Show Logs* to view the log information.
28
+
====
29
+
30
+
.Verification
31
+
32
+
* If your software component is not created successfully, you can review the logs on the error page. To return to the *Self-service* page with the same template form and your previously entered values, click *Start Over*.
** Open the URL `\https://<rhdh_url>/create/edit` for your {product} instance.
17
17
** Click *Self-service* in the navigation menu of the {product} console, then click the overflow menu button and select *Template editor*.
18
18
. Click *Edit Template Form*.
19
-
. Optional: Modify the YAML definition for the parameters of your template. For more information about these parameters, see <<Creating a template as a YAML file>>.
19
+
. Optional: Modify the YAML definition for the parameters of your template. For more information about these parameters, see <<Creating a Software Template as a YAML file>>.
20
20
. In the *Name* field, enter a unique name for your template.
21
21
. From the *Owner* drop-down menu, choose an owner for the template.
Copy file name to clipboardExpand all lines: modules/customizing-templates/ref-creating-templates.adoc
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,11 @@
4
4
5
5
:_mod-docs-content-type: REFERENCE
6
6
[id="ref-creating-templates_{context}"]
7
-
= Creating a template as a YAML file
7
+
= Creating a Software Template as a YAML file
8
8
9
-
You can create a template by defining a `Template` object as a YAML file.
9
+
You can create a Software Template by defining a `Template` object as a YAML file.
10
10
11
-
The `Template` object describes the template and its metadata. It also contains required input variables and a list of actions that are executed by the scaffolding service.
11
+
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.
<2> Specify a title for the template. This is the title that is visible on the template tile in the *Self-service* view.
61
-
<3> Specify a description for the template. This is the description that is visible on the template tile in the *Self-service* view.
62
-
<4> Specify the ownership of the template. The `owner` field provides information about who is responsible for maintaining or overseeing the template within the system or organization. In the provided example, the `owner` field is set to `backstage/techdocs-core`. This means that this template belongs to the `techdocs-core` project in the `backstage` namespace.
59
+
<1> Specify a name for the Software Template.
60
+
<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.
61
+
<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.
62
+
<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.
63
63
<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.
64
64
+
65
65
The following values are common for this field:
@@ -69,7 +69,7 @@ The following values are common for this field:
69
69
`website`:: A website.
70
70
`library`:: A software library, such as an npm module or a Java library.
71
71
--
72
-
<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 template in the {product} console. Each `parameters` subsection, defined by a title and properties, creates a new form page with that definition.
72
+
<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.
73
73
<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`.
74
74
<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.
75
75
<9> Provides a reference or URL to the repository associated with the generated component.
0 commit comments