Skip to content

Commit

Permalink
✨ added prow tekton pipeline integration
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Görn <[email protected]>
  • Loading branch information
goern committed Feb 2, 2021
1 parent 8d479b7 commit 5de2a64
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 0 deletions.
8 changes: 8 additions & 0 deletions prow/base/imagestreams.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,11 @@ metadata:
spec:
lookupPolicy:
local: true
---
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: pipeline
spec:
lookupPolicy:
local: true
84 changes: 84 additions & 0 deletions prow/base/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
kind: ServiceAccount
apiVersion: v1
metadata:
name: prow-pipeline
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: prow-pipeline
rules:
- apiGroups:
- tekton.dev
resources:
- pipelineruns
- pipelineresources
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- prow.k8s.io
resources:
- prowjobs
verbs:
- get
- list
- watch
- update
- patch
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: prow-pipeline
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: prow-pipeline
subjects:
- kind: ServiceAccount
name: prow-pipeline
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: prow-pipeline
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: prow-pipeline
template:
metadata:
labels:
app: prow-pipeline
spec:
serviceAccountName: prow-pipeline
containers:
- name: pipeline
image: pipeline:latest
args:
- --all-contexts
- --config=/etc/prow-config/config.yaml
- --kubeconfig=/etc/kubeconfig/config
volumeMounts:
- mountPath: /etc/kubeconfig
name: kubeconfig
readOnly: true
- mountPath: /etc/prow-config
name: prow-config
readOnly: true
volumes:
- name: kubeconfig
secret:
defaultMode: 420
secretName: kubeconfig
- name: prow-config
configMap:
name: config
20 changes: 20 additions & 0 deletions prow/overlays/cnv-prod/imagestreamtags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,23 @@ spec:
importPolicy: {}
referencePolicy:
type: Local
---
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: pipeline
spec:
lookupPolicy:
local: true
tags:
- name: latest
from:
kind: ImageStreamTag
name: v20210201-6494714d87
- name: v20210201-6494714d87
from:
kind: DockerImage
name: gcr.io/k8s-prow/pipeline:v20210201-6494714d87
importPolicy: {}
referencePolicy:
type: Local

0 comments on commit 5de2a64

Please sign in to comment.