ui:options 示例
EntityPicker
下可指定的输入道具ui:options为EntityPicker实地扩展。
allowArbitraryValues 允许任意取值
是否允许用户任意输入。 默认为 true。
allowArbitraryValues在选择实体时提供输入验证,因为您输入的值将与有效实体相对应。
- 添加一个有效实体,并将
allowArbitraryValues设为false。
entity:
title: Entity
type: string
description: Entity of the component
ui:field: EntityPicker
ui:options:
allowArbitraryValues: false
- 添加任意实体,并将
allowArbitraryValues设为true(默认值)。
entity:
title: Entity
type: string
description: Entity of the component
ui:field: EntityPicker
ui:options:
allowArbitraryValues: true
allowedKinds 允许的种类
取消:使用catalogFilter而不是
`目录过滤器
catalogFilter支持按实体的任何字段过滤选项。
- 获取所有 "组 "类型的实体
entity:
title: Entity
type: string
description: Entity of the component
ui:field: EntityPicker
ui:options:
catalogFilter:
- kind: Group
- 获取类型为 "组 "和 spec.type 为 "队 "的实体
entity:
title: Entity
type: string
description: Entity of the component
ui:field: EntityPicker
ui:options:
catalogFilter:
- kind: Group
spec.type: team
有关规格的全部详细信息,请参见*数值见这里.
`默认类型
默认实体种类。
system:
title: System
type: string
description: System of the component
ui:field: EntityPicker
ui:options:
catalogFilter:
kind: System
defaultKind: System
`默认命名空间
实体所属命名空间的 ID。 默认值为default.
- 列出
default命名空间(默认值)中的所有实体
entity:
title: Entity
type: string
description: Entity of the component
ui:field: EntityPicker
ui:options:
defaultNamespace: default
- 列出 "支付 "命名空间中的所有实体
entity:
title: Entity
type: string
description: Entity of the component
ui:field: EntityPicker
ui:options:
defaultNamespace: payment
MultiEntityPicker
下可指定的输入道具ui:options为MultiEntityPicker实地扩展。
allowArbitraryValues 允许任意取值
是否允许用户任意输入。 默认为 true。
allowArbitraryValues在选择实体时提供输入验证,因为您输入的值将与有效实体相对应。
- 添加一个有效实体,并将
allowArbitraryValues设为false。
entity:
title: Entities
type: array
description: Entities of the component
ui:field: MultiEntityPicker
ui:options:
allowArbitraryValues: false
- 添加任意实体,并将
allowArbitraryValues设为true(默认值)。
entity:
title: Entities
type: array
description: Entities of the component
ui:field: MultiEntityPicker
ui:options:
allowArbitraryValues: true
`目录过滤器
catalogFilter支持按实体的任何字段过滤选项。
- 获取所有 "组 "类型的实体
entity:
title: Entities
type: array
description: Entities of the component
ui:field: MultiEntityPicker
ui:options:
catalogFilter:
- kind: Group
- 获取类型为 "组 "和 spec.type 为 "队 "的实体
entity:
title: Entities
type: array
description: Entities of the component
ui:field: MultiEntityPicker
ui:options:
catalogFilter:
- kind: Group
spec.type: team
有关规格的全部详细信息,请参见*数值见这里.
`默认类型
默认实体种类。
system:
title: System
type: array
description: Systems of the component
ui:field: MultiEntityPicker
ui:options:
catalogFilter:
kind: System
defaultKind: System
`默认命名空间
实体所属命名空间的 ID。 默认值为default.
- 列出
default命名空间(默认值)中的所有实体
entity:
title: Entity
type: array
description: Entities of the component
ui:field: MultiEntityPicker
ui:options:
defaultNamespace: default
- 列出 "支付 "命名空间中的所有实体
entity:
title: Entity
type: array
description: Entities of the component
ui:field: MultiEntityPicker
ui:options:
defaultNamespace: payment
OwnerPicker.
下可指定的输入道具ui:options为OwnerPicker实地扩展。
allowArbitraryValues 允许任意取值
是否允许用户任意输入。 默认为 true。
allowArbitraryValues在选择 Owner 时提供输入验证,因为您输入的值将与有效的 Owner 相对应。
- 添加一个有效的 Owner,并将
allowArbitraryValues设为false。
owner:
title: Owner
type: string
description: Owner of the component
ui:field: OwnerPicker
ui:options:
allowArbitraryValues: false
- 添加任意 Owner,并将
allowArbitraryValues设为true(默认值)。
owner:
title: Owner
type: string
description: Owner of the component
ui:field: OwnerPicker
ui:options:
allowArbitraryValues: true
allowedKinds 允许的种类
取消:使用catalogFilter而不是
`目录过滤器
catalogFilter支持按实体的任何字段过滤选项。
- 获取所有 "组 "类型的实体
owner:
title: Owner
type: string
description: Owner of the component
ui:field: OwnerPicker
ui:options:
catalogFilter:
- kind: Group
- 获取类型为 "组 "和 spec.type 为 "队 "的实体
owner:
title: Owner
type: string
description: Owner of the component
ui:field: OwnerPicker
ui:options:
catalogFilter:
- kind: Group
spec.type: team
有关规格的全部详细信息,请参见*数值见这里.
`默认命名空间
Owner 所属命名空间的 ID。 默认值为default.
- 在 "default "命名空间(默认值)中列出 Owner
owner:
title: Owner
type: string
description: Owner of the component
ui:field: OwnerPicker
ui:options:
catalogFilter:
- kind: Group
defaultNamespace: default
- 在 "支付 "命名空间中列出 Owner
owner:
title: Owner
type: string
description: Owner of the component
ui:field: OwnerPicker
ui:options:
catalogFilter:
- kind: Group
defaultNamespace: payment
RepoUrlPicker
下可指定的输入道具ui:options为RepoUrlPicker实地扩展。
allowedHosts 允许的主机
allowedHosts部分应设置为您希望将此模板发布到的位置。 它可以是集成配置中列出的任何主机,如app-config.yaml.
- 只发布到来自
github.com的版本库
repoUrl:
title: Repository Location
type: string
ui:field: RepoUrlPicker
ui:options:
allowedHosts:
- github.com
allowedOrganizations 允许的组 织
在给定的 SCM 平台中允许发布的组织列表。 您可以限制模板发布到一组组织。
- 只发布到
my_organization组织的存储库中
repoUrl:
title: Repository Location
type: string
ui:field: RepoUrlPicker
ui:options:
allowedOrganizations:
- my_organization
allowedProjects 允许的项目
给定 SCM 平台中允许的项目列表。 您可以限制模板发布到一组项目。
- 只发布到项目
project_1的版本库中
repoUrl:
title: Repository Location
type: string
ui:field: RepoUrlPicker
ui:options:
allowedProjects:
- project_1
allowedRepos.
给定 SCM 平台中允许的版本库列表。 您可以限制模板发布到一组版本库名称。
- 只发布到
repo_1和repo_2仓库
repoUrl:
title: Repository Location
type: string
ui:field: RepoUrlPicker
ui:options:
allowedRepos:
- repo_1
- repo_2
allowedOwners 允许的所有者
在给定的 SCM 平台中允许的 Owners 列表。 可以通过设置allowedOwners选择。
- 只发布到来自 Owner
owner_1和owner_2的版本库
repoUrl:
title: Repository Location
type: string
ui:field: RepoUrlPicker
ui:options:
allowedOwners:
- owner_1
- owner_2
requestUserCredentials (请求用户凭据
如果已定义,将请求用户凭据以验证给定的 SCM 平台。
repoUrl:
title: Repository Location
type: string
ui:field: RepoUrlPicker
ui:options:
requestUserCredentials:
secretsKey: USER_OAUTH_TOKEN
additionalScopes:
github:
- workflow:write
secretsKey是模板Secret上下文中用于存储证书的密钥,而additionalScopes是要请求的其他权限范围。
支持的additionalScopes值为gerrit,github,gitlab,bitbucket和azure.