blob: 2df94c87b3e1fa28ba3b39b2f6f71e952595a3bb [file] [log] [blame]
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: mail
labels:
app: mail
spec:
replicas: 1
template:
metadata:
labels:
app: mail
spec:
serviceAccountName: mail
terminationGracePeriodSeconds: 30
containers:
- name: mail
image: gcr.io/kunit-presubmit/crier_kunit
imagePullPolicy: Always
args:
- --mail-workers=1
- --to-address=kunit-dev@googlegroups.com
- --from-address={SENDER EMAIL}
- --msa-domain={MSADOMAIN (ie- smtp.gmail.com0}
env:
- name: SECRET_SMTP_PASSWORD
valueFrom:
secretKeyRef:
name: smtpsecret
key: password
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: "mail"
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
# "namespace" omitted since ClusterRoles are not namespaced
name: mail
rules:
- apiGroups:
- "prow.k8s.io"
resources:
- "prowjobs"
verbs:
- "get"
- "watch"
- "list"
- "patch"
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: mail
namespace: "default"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: mail
subjects:
- kind: ServiceAccount
name: mail
namespace: "default"
---