Skip to content

Commit 0382ee1

Browse files
authored
feat: add coderepository schema & fixtures (#1945)
1 parent 40ef843 commit 0382ee1

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
teamConfig:
2+
demo:
3+
coderepos: []
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
teamConfig:
2+
demo:
3+
coderepos:
4+
- gitService: github
5+
label: buildpacks-samples
6+
private: false
7+
repositoryUrl: https://github.com/buildpacks/samples
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
teamConfig:
2+
demo:
3+
coderepos: []

values-schema.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -1196,6 +1196,10 @@ definitions:
11961196
type: array
11971197
items:
11981198
$ref: '#/definitions/build'
1199+
coderepos:
1200+
type: array
1201+
items:
1202+
$ref: '#/definitions/coderepo'
11991203
teamSelfService:
12001204
title: Team permissions
12011205
description: Grant team permissions to modify certain configuration parameters.
@@ -1503,6 +1507,33 @@ definitions:
15031507
- email
15041508
- firstName
15051509
- lastName
1510+
coderepo:
1511+
type: object
1512+
description: Define location of code repository to build
1513+
properties:
1514+
label:
1515+
$ref: '#/definitions/idName'
1516+
gitService:
1517+
description: Git service provider
1518+
type: string
1519+
default: gitea
1520+
enum:
1521+
- gitea
1522+
- github
1523+
- gitlab
1524+
repositoryUrl:
1525+
description: URL of the Git repository holding the application code.
1526+
$ref: '#/definitions/repoUrl'
1527+
private:
1528+
type: boolean
1529+
default: false
1530+
secret:
1531+
description: The name of the secret with the credentials of the external private Git repository
1532+
type: string
1533+
required:
1534+
- label
1535+
- gitService
1536+
- repositoryUrl
15061537

15071538
properties:
15081539
alerts:

0 commit comments

Comments
 (0)