blob: b39f7832b9fc30274d267c427400b509442617b6 [file] [log] [blame]
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: crier
labels:
app: crier
spec:
replicas: 1
template:
metadata:
labels:
app: crier
spec:
serviceAccountName: crier
terminationGracePeriodSeconds: 30
containers:
- name: crier
image: gcr.io/k8s-prow/crier:v20181203-6a1345b
args:
- --gerrit-workers=1
- --gerrit-projects=https://kunit-review.googlesource.com=linux
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: "crier"
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
# "namespace" omitted since ClusterRoles are not namespaced
name: crier
rules:
- apiGroups:
- "prow.k8s.io"
resources:
- "prowjobs"
verbs:
- "get"
- "watch"
- "list"
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: "crier"
namespace: "default"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: "crier"
subjects:
- kind: ServiceAccount
name: "crier"
namespace: "default"