ui:options 예시
EntityPicker 필드 확장의 ui:options 아래에 지정할 수 있는 입력 속성들입니다.
출처: 문서
본문
EntityPicker
EntityPicker 필드 확장의 ui:options 아래에 지정할 수 있는 입력 속성들입니다.
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
더 이상 사용되지 않음(DEPRECATED): 대신 catalogFilter를 사용하세요.
catalogFilter
catalogFilter는 엔티티의 어떤 필드로든 옵션을 필터링하는 것을 지원합니다.
- 종류가
Group인 모든 엔티티 가져오기
entity: title: Entity type: string description: Entity of the component ui:field: EntityPicker ui:options: catalogFilter: - kind: Group
- 종류가
Group이고 spec.type이team인 엔티티 가져오기
entity: title: Entity type: string description: Entity of the component ui:field: EntityPicker ui:options: catalogFilter: - kind: Group spec.type: team
spec.* 값에 대한 전체 세부 사항은 여기를 참조하세요.
defaultKind
기본 엔티티 종류.
system: title: System type: string description: System of the component ui:field: EntityPicker ui:options: catalogFilter: kind: System defaultKind: System
defaultNamespace
엔티티가 속한 네임스페이스의 ID. 기본값은 default입니다.
default네임스페이스의 모든 엔티티 나열(기본값)
entity: title: Entity type: string description: Entity of the component ui:field: EntityPicker ui:options: defaultNamespace: default
payment네임스페이스의 모든 엔티티 나열
entity: title: Entity type: string description: Entity of the component ui:field: EntityPicker ui:options: defaultNamespace: payment
autoSelect
입력이 포커스를 잃을 때 강조 표시된 옵션을 자동으로 선택할지 여부. 기본값은 true입니다.
false로 설정하면 사용자가 드롭다운에서 옵션을 클릭하거나 Enter를 눌러 명시적으로 선택해야 합니다. 이렇게 하면 옵션을 필터링하기 위해 입력하는 동안 실수로 선택되는 것을 방지할 수 있습니다.
autoSelect가true일 때의 기본 동작(blur 시 자동 선택)
entity: title: Entity type: string description: Entity of the component ui:field: EntityPicker ui:options: autoSelect: true
autoSelect가false일 때 명시적 선택 요구
entity: title: Entity type: string description: Entity of the component ui:field: EntityPicker ui:options: autoSelect: false
MultiEntityPicker
MultiEntityPicker 필드 확장의 ui:options 아래에 지정할 수 있는 입력 속성들입니다.
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
catalogFilter는 엔티티의 어떤 필드로든 옵션을 필터링하는 것을 지원합니다.
- 종류가
Group인 모든 엔티티 가져오기
entity: title: Entities type: array description: Entities of the component ui:field: MultiEntityPicker ui:options: catalogFilter: - kind: Group
- 종류가
Group이고 spec.type이team인 엔티티 가져오기
entity: title: Entities type: array description: Entities of the component ui:field: MultiEntityPicker ui:options: catalogFilter: - kind: Group spec.type: team
spec.* 값에 대한 전체 세부 사항은 여기를 참조하세요.
defaultKind
기본 엔티티 종류.
system: title: System type: array description: Systems of the component ui:field: MultiEntityPicker ui:options: catalogFilter: kind: System defaultKind: System
defaultNamespace
엔티티가 속한 네임스페이스의 ID. 기본값은 default입니다.
default네임스페이스의 모든 엔티티 나열(기본값)
entity: title: Entity type: array description: Entities of the component ui:field: MultiEntityPicker ui:options: defaultNamespace: default
payment네임스페이스의 모든 엔티티 나열
entity: title: Entity type: array description: Entities of the component ui:field: MultiEntityPicker ui:options: defaultNamespace: payment
OwnerPicker
OwnerPicker 필드 확장의 ui:options 아래에 지정할 수 있는 입력 속성들입니다.
allowArbitraryValues
임의의 사용자 입력을 허용할지 여부. 기본값은 true입니다.
allowArbitraryValues는 소유자를 선택할 때 입력 검증을 제공합니다. 입력하는 값이 유효한 소유자에 대응하기 때문입니다.
allowArbitraryValues를false로 하여 유효한 소유자 추가
owner: title: Owner type: string description: Owner of the component ui:field: OwnerPicker ui:options: allowArbitraryValues: false
allowArbitraryValues를true(기본값)로 하여 임의의 소유자 추가
owner: title: Owner type: string description: Owner of the component ui:field: OwnerPicker ui:options: allowArbitraryValues: true
allowedKinds
더 이상 사용되지 않음(DEPRECATED): 대신 catalogFilter를 사용하세요.
catalogFilter
catalogFilter는 엔티티의 어떤 필드로든 옵션을 필터링하는 것을 지원합니다.
- 종류가
Group인 모든 엔티티 가져오기
owner: title: Owner type: string description: Owner of the component ui:field: OwnerPicker ui:options: catalogFilter: - kind: Group
- 종류가
Group이고 spec.type이team인 엔티티 가져오기
owner: title: Owner type: string description: Owner of the component ui:field: OwnerPicker ui:options: catalogFilter: - kind: Group spec.type: team
spec.* 값에 대한 전체 세부 사항은 여기를 참조하세요.
defaultNamespace
소유자가 속한 네임스페이스의 ID. 기본값은 default입니다.
default네임스페이스의 소유자 나열(기본값)
owner: title: Owner type: string description: Owner of the component ui:field: OwnerPicker ui:options: catalogFilter: - kind: Group defaultNamespace: default
payment네임스페이스의 소유자 나열
owner: title: Owner type: string description: Owner of the component ui:field: OwnerPicker ui:options: catalogFilter: - kind: Group defaultNamespace: payment
RepoUrlPicker
RepoUrlPicker 필드 확장의 ui:options 아래에 지정할 수 있는 입력 속성들입니다.
allowedHosts
allowedHosts 부분은 이 템플릿이 게시하도록 활성화하려는 곳으로 설정해야 합니다. 그리고 app-config.yaml의 통합 config에 나열된 호스트라면 어떤 것이든 될 수 있습니다.
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 플랫폼에서 허용된 소유자의 목록. allowedOwners 옵션을 설정해 템플릿이 특정 사용자/그룹이 소유한 저장소에만 게시하도록 제한할 수 있습니다.
- 소유자
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는 템플릿 비밀 컨텍스트 안에서 자격 증명을 저장하는 데 사용되는 키이고, additionalScopes는 요청할 추가 권한 범위입니다.
지원되는 additionalScopes 값은 gerrit, github, gitlab, bitbucket, azure입니다.
ownerLabel
소유자/네임스페이스 필드에 대한 커스텀 레이블. 주어진 SCM 제공자 선택기의 기본 레이블을 대체합니다.
- 기본
Owner레이블 대신GitLab Namespace표시
repoUrl: title: Repository Location type: string ui:field: RepoUrlPicker ui:options: ownerLabel: GitLab Namespace
ownerDescription
소유자/네임스페이스 필드에 대한 커스텀 설명. 기본 도움말 텍스트를 대체합니다.
- 소유자 필드에 대한 커스텀 안내 표시
repoUrl: title: Repository Location type: string ui:field: RepoUrlPicker ui:options: ownerDescription: Your username or group path where the repository will be created
repoLabel
저장소 이름 필드에 대한 커스텀 레이블. 기본 Repository 레이블을 대체합니다.
- 기본 레이블 대신
New Repository Name표시
repoUrl: title: Repository Location type: string ui:field: RepoUrlPicker ui:options: repoLabel: New Repository Name
repoDescription
저장소 이름 필드에 대한 커스텀 설명. 기본 도움말 텍스트를 대체합니다.
- 저장소 이름 필드에 대한 커스텀 안내 표시
repoUrl: title: Repository Location type: string ui:field: RepoUrlPicker ui:options: repoDescription: Type a new repository name
disableRepoAutocomplete
true이면 저장소 이름에 대해 자동 완성 드롭다운 대신 일반 텍스트 입력을 렌더링합니다.
- 저장소 자동 완성 드롭다운 비활성화
repoUrl: title: Repository Location type: string ui:field: RepoUrlPicker ui:options: disableRepoAutocomplete: true
RepoBranchPicker
RepoBranchPicker 필드 확장의 ui:options 아래에 지정할 수 있는 입력 속성들입니다.
requestUserCredentials
정의되면 주어진 SCM 플랫폼에 인증하기 위해 사용자 자격 증명을 요청합니다.
repoUrl: title: Repository Branch type: string ui:field: RepoBranchPicker ui:options: requestUserCredentials: secretsKey: USER_OAUTH_TOKEN additionalScopes: github: - workflow:write
secretsKey는 템플릿 비밀 컨텍스트 안에서 자격 증명을 저장하는 데 사용되는 키이고, additionalScopes는 요청할 추가 권한 범위입니다.
지원되는 additionalScopes 값은 gerrit, github, gitlab, bitbucket, azure입니다.
또한 RepoUrlPicker 필드 확장을 사용하고 있다면, 이 부분을 거기서 그대로 복제하면 됩니다.
RepoOwnerPicker
RepoOwnerPicker 필드 확장의 ui:options 아래에 지정할 수 있는 입력 속성들입니다.
host
자동 완성을 위해 소유자를 가져와야 하는 SCM 통합 호스트.
github.com에서 소유자 가져오기
repoUrl: title: Repository Owner type: string ui:field: RepoOwnerPicker ui:options: host: github.com
excludedOwners
자동 완성에서 제외해야 하는 소유자의 목록.
- 소유자
owner_1을 자동 완성에서 제외
repoUrl: title: Repository Owner type: string ui:field: RepoOwnerPicker ui:options: excludedOwners: - owner_1
requestUserCredentials
정의되면 주어진 SCM 플랫폼에 인증하기 위해 사용자 자격 증명을 요청합니다.
repoUrl: title: Repository Owner type: string ui:field: RepoOwnerPicker ui:options: requestUserCredentials: secretsKey: USER_OAUTH_TOKEN additionalScopes: github: - workflow:write
secretsKey는 템플릿 비밀 컨텍스트 안에서 자격 증명을 저장하는 데 사용되는 키이고, additionalScopes는 요청할 추가 권한 범위입니다.
지원되는 additionalScopes 값은 gerrit, github, gitlab, bitbucket, azure입니다.