forked from kubernetes/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-merger-prowjob-example.yaml
60 lines (59 loc) · 2.33 KB
/
config-merger-prowjob-example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
presubmits:
YOUR-ORG/YOUR-REPO: # TODO: Replace this
- name: pull-[repo-name]-check-testgrid-config # TODO: Rename this
branches:
- ^your-branch$ # TODO: Replace this
run_if_changed: '^(dir/to/your/prowjobs/.*\.yaml)|(dir/to/your/testgrid/default\.yaml)$' # TODO: Replace this
decorate: true
annotations:
testgrid-create-test-group: "false"
spec:
containers:
- image: gcr.io/k8s-prow/configurator
command:
- /app/testgrid/cmd/configurator/app.binary
args: # TODO: Replace These (See Configurator Readme)
- --yaml=testgrid/dashboard/config.yaml
- --default=testgrid/default.yaml
- --prow-config=prow/config.yaml
- --prow-job-config=prow/prowjob/dir
- --prowjob-url-prefix=https://github.com/[ORG]/[REPO]/tree/[BRANCH]/prow/prowjob/dir
- --update-description
- --validate-config-file
- --oneshot
resources:
requests:
memory: "1Gi"
postsubmits:
YOUR-ORG/YOUR-REPO: # TODO: Replace this
- name: post-[repo-name]-upload-testgrid-config # TODO: Rename this
branches:
- ^your-branch$ # TODO: Replace this
max_concurrency: 1
labels:
preset-bazel-scratch-dir: "true"
run_if_changed: '^(dir/to/your/prowjobs/.*\.yaml)|(dir/to/your/testgrid/default\.yaml)$' # TODO: Replace this
decorate: true
annotations: # TODO: These add your postsubmit job to TestGrid. Replace these
testgrid-dashboards: YOUR_DASHBOARD
testgrid-tab-name: testgrid-upload
testgrid-alert-email: [email protected]
testgrid-num-failures-to-alert: '1'
spec:
serviceAccountName: testgrid-config-updater # TODO: Add a service account that can write to your cloud storage
containers:
- image: gcr.io/k8s-prow/configurator
command:
- /app/testgrid/cmd/configurator/app.binary
args: # TODO: Replace These (See Configurator Readme)
- --yaml=testgrid/dashboard/config.yaml
- --default=testgrid/default.yaml
- --prow-config=prow/config.yaml
- --prow-job-config=prow/prowjob/dir
- --prowjob-url-prefix=https://github.com/[ORG]/[REPO]/tree/[BRANCH]/prow/prowjob/dir
- --update-description
- --output=gs://[BUCKET]/config
- --oneshot
resources:
requests:
memory: "1Gi"