Skip to content

Catalog-Backed Selectors

Use catalog-backed selectors when a mold input should be selected from existing Shoehorn data.

inputs:
type: object
required:
- team
properties:
team:
type: string
title: Owning team
ui:options:
source: catalog:teams
placeholder: Select a team
SourceWhat users can selectStored value
catalog:teamsTeamsTeam slug, falling back to team name
catalog:usersUsersUser email
catalog:groupsGroupsGroup name
catalog:entitiesCatalog entitiesEntity service name, falling back to entity ID
catalog:repositoriesRepositoriesRepository full name, falling back to repository name

Use catalog:entities when a mold needs to select a catalog entity. Add filters when the selector should only show a subset, such as services owned by a team.

catalog:entities supports filters in ui:options.filters.

dependsOnService:
type: string
title: Depends on service
ui:options:
source: catalog:entities
placeholder: Select a service
filters:
type: service
lifecycle: production
owner: platform-team
source: github
tags:
- golang
search: api
limit: 50

Supported filters:

FilterDescription
typeEntity type, such as service
manifestTypeManifest type
lifecycleLifecycle value
ownerOwner or team
sourceSource system
teamTeam
tagsRequired tags
searchSearch text
limit or pageSizeNumber of options to load

User selector:

requestedBy:
type: string
title: Requested by
ui:options:
source: catalog:users
placeholder: Select a user

Repository selector:

repository:
type: string
title: Existing repository
ui:options:
source: catalog:repositories
placeholder: Select a repository