Files
backstage/template.yaml
T
Harry Hogg 906be33035 Added some todos for cleanup
Signed-off-by: Harry Hogg <hhogg@spotify.com>
Co-authored-by: Vincenzo Scamporlino <vincenzos@spotify.com>
2023-03-21 16:37:55 +01:00

68 lines
1.6 KiB
YAML

# TODO: Remove once approach is validated on RFC.
apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata:
name: my_custom_template
title: My custom template
description: Just testing
spec:
owner: web@example.com
type: website
parameters:
- title: Provide some simple information
required:
- component_id
- owner
# Example of annotating a parameter
metadata:
tags:
- example
properties:
component_id:
title: Name
type: string
description: Unique name of the component
ui:field: EntityNamePicker
# Example of annotating a property
metadata:
tags:
- example
description:
title: Description
type: string
description: Help others understand what this website is for.
owner:
title: Owner
type: string
description: Owner of the component
ui:field: OwnerPicker
ui:options:
allowedKinds:
- Group
- title: Choose a location
required:
- repoUrl
properties:
repoUrl:
title: Repository Location
type: string
ui:field: RepoUrlPicker
ui:options:
allowedHosts:
- github.com
steps:
- id: one
name: First log
action: debug:log
input:
message: hello
# Example of annotating a step
metadata:
tags:
- example
- id: two
name: Second log
action: debug:log
input:
message: world