Skip to content

Commit c2debd9

Browse files
authored
feat: update prow to v20200128 8dae29413 (#58)
* feat: update images to v20200128-8dae29413 * feat: remove watch from deck * feat: remove patch from plank * feat: remove get, watch from tide * fix: remove HELM_REPO * fix: rbac * feat: add support for pipeline * feat: update app version
1 parent 4c6c3e0 commit c2debd9

File tree

5 files changed

+105
-14
lines changed

5 files changed

+105
-14
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
CHART_NAME ?= prow
22
CHART_VERSION ?= 0.0.0
33
CHART_DIST ?= $(CHART_NAME)/dist
4-
HELM_REPO ?= gs://ouzi-helm-charts
54

65
.PHONY: clean
76
clean:

prow/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ type: application
1717
version: 0.0.0
1818

1919
# Uses the Prow version
20-
appVersion: v20191017
20+
appVersion: v20200128-8dae29413
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
kind: Deployment
2+
apiVersion: apps/v1
3+
metadata:
4+
name: prow-pipeline
5+
spec:
6+
replicas: 1
7+
strategy:
8+
type: Recreate
9+
selector:
10+
matchLabels:
11+
app: prow-pipeline
12+
template:
13+
metadata:
14+
labels:
15+
app: prow-pipeline
16+
spec:
17+
# use service account to use local cluster and not a remote
18+
serviceAccountName: prow-pipeline
19+
containers:
20+
- name: pipeline
21+
image: {{ .Values.pipeline.image }}
22+
args:
23+
- --all-contexts
24+
- --config=/etc/prow-config/config.yaml
25+
# - --build-cluster=/etc/build-cluster/cluster
26+
volumeMounts:
27+
# - mountPath: /etc/build-cluster
28+
# name: build-cluster
29+
# readOnly: true
30+
- mountPath: /etc/prow-config
31+
name: prow-config
32+
readOnly: true
33+
volumes:
34+
# - name: build-cluster
35+
# secret:
36+
# defaultMode: 420
37+
# secretName: build-cluster
38+
- name: prow-config
39+
configMap:
40+
name: config

prow/templates/pipeline-rbac.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
kind: ServiceAccount
2+
apiVersion: v1
3+
metadata:
4+
name: prow-pipeline
5+
---
6+
kind: ClusterRole
7+
apiVersion: rbac.authorization.k8s.io/v1
8+
metadata:
9+
name: prow-pipeline
10+
rules:
11+
- apiGroups:
12+
- tekton.dev
13+
resources:
14+
- pipelineruns
15+
- pipelineresources
16+
verbs:
17+
- create
18+
- delete
19+
- get
20+
- list
21+
- update
22+
- watch
23+
- apiGroups:
24+
- prow.k8s.io
25+
resources:
26+
- prowjobs
27+
- prowjobs/status
28+
verbs:
29+
- get
30+
- list
31+
- watch
32+
- update
33+
- patch
34+
---
35+
kind: ClusterRoleBinding
36+
apiVersion: rbac.authorization.k8s.io/v1
37+
metadata:
38+
name: prow-pipeline
39+
roleRef:
40+
apiGroup: rbac.authorization.k8s.io
41+
kind: ClusterRole
42+
name: prow-pipeline
43+
subjects:
44+
- kind: ServiceAccount
45+
name: prow-pipeline
46+
namespace: {{ .Release.Namespace }}

prow/values.yaml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ oauthproxy:
1818
image: quay.io/pusher/oauth2_proxy:v3.1.0
1919

2020
hook:
21-
image: gcr.io/k8s-prow/hook:v20191028-a687a71be
21+
image: gcr.io/k8s-prow/hook:v20200128-8dae29413
2222
replicas: 1
2323
ingress:
2424
host: prow.test-infra.ouzi.io
@@ -28,14 +28,14 @@ hook:
2828
kubernetes.io/ingress.class: nginx
2929

3030
plank:
31-
image: gcr.io/k8s-prow/plank:v20191028-a687a71be
31+
image: gcr.io/k8s-prow/plank:v20200128-8dae29413
3232

3333
sinker:
34-
image: gcr.io/k8s-prow/sinker:v20191028-a687a71be
34+
image: gcr.io/k8s-prow/sinker:v20200128-8dae29413
3535
replicas: 1
3636

3737
deck:
38-
image: gcr.io/k8s-prow/deck:v20191028-a687a71be
38+
image: gcr.io/k8s-prow/deck:v20200128-8dae29413
3939
replicas: 1
4040
ingress:
4141
host: prow.test-infra.ouzi.io
@@ -47,30 +47,36 @@ deck:
4747
nginx.ingress.kubernetes.io/auth-signin: "https://oauth2.test-infra.ouzi.io/oauth2/start?rd=/redirect/$http_host$request_uri"
4848

4949
horologium:
50-
image: gcr.io/k8s-prow/horologium:v20191028-a687a71be
50+
image: gcr.io/k8s-prow/horologium:v20200128-8dae29413
5151

5252
tide:
53-
image: gcr.io/k8s-prow/tide:v20191028-a687a71be
53+
image: gcr.io/k8s-prow/tide:v20200128-8dae29413
5454

5555
statusreconciler:
56-
image: gcr.io/k8s-prow/status-reconciler:v20191028-a687a71be
56+
image: gcr.io/k8s-prow/status-reconciler:v20200128-8dae29413
5757
replicas: 1
5858

5959
needsrebase:
60-
image: gcr.io/k8s-prow/needs-rebase:v20191028-a687a71be
60+
image: gcr.io/k8s-prow/needs-rebase:v20200128-8dae29413
6161

6262
branchprotector:
63-
image: gcr.io/k8s-prow/branchprotector:v20191028-a687a71be
63+
image: gcr.io/k8s-prow/branchprotector:v20200128-8dae29413
6464
schedule: 12 * * * * # Every hour at 12 minutes past the hour
6565

6666
crier:
67-
image: gcr.io/k8s-prow/crier:v20191028-a687a71be
67+
image: gcr.io/k8s-prow/crier:v20200128-8dae29413
6868
replicas: 1
6969

7070
labelsync:
71-
image: gcr.io/k8s-prow/label_sync:v20191028-a687a71be
71+
image: gcr.io/k8s-prow/label_sync:v20200128-8dae29413
7272
schedule: 0 5 * * * # Every day at 5AM
7373

74+
# requires tekton to work -
75+
# we will install it part of the chart in a later revision
76+
pipeline:
77+
# image: gcr.io/k8s-prow/pipeline:v20200131-19ad23dfd
78+
image: gcr.io/k8s-prow/pipeline:v20200128-8dae29413
79+
7480
pushgateway:
7581
image: prom/pushgateway:v0.4.0
7682
replicas: 1
@@ -79,7 +85,7 @@ pushgateway:
7985
replicas: 1
8086

8187
ghproxy:
82-
image: gcr.io/k8s-prow/ghproxy:v20191028-a687a71be
88+
image: gcr.io/k8s-prow/ghproxy:v20200128-8dae29413
8389
replicas: 1
8490
cache:
8591
sizeGB: 19

0 commit comments

Comments
 (0)