github.com/jenkins-x/test-infra@v0.0.7/prow/cluster/branchprotector_cronjob.yaml (about) 1 apiVersion: batch/v1beta1 2 kind: CronJob 3 metadata: 4 namespace: default 5 name: branchprotector 6 spec: 7 schedule: "54 * * * *" # Every hour at 54 minutes past the hour 8 concurrencyPolicy: Forbid 9 jobTemplate: 10 metadata: 11 labels: 12 app: branchprotector 13 spec: 14 template: 15 spec: 16 containers: 17 - name: branchprotector 18 image: gcr.io/k8s-prow/branchprotector:v20181218-8eb6f41 19 args: 20 - --config-path=/etc/config/config.yaml 21 - --job-config-path=/etc/job-config 22 - --github-token-path=/etc/github/oauth 23 - --confirm 24 - --github-endpoint=http://ghproxy 25 - --github-endpoint=https://api.github.com 26 volumeMounts: 27 - name: oauth 28 mountPath: /etc/github 29 readOnly: true 30 - name: config 31 mountPath: /etc/config 32 readOnly: true 33 - name: job-config 34 mountPath: /etc/job-config 35 readOnly: true 36 restartPolicy: Never 37 volumes: 38 - name: oauth 39 secret: 40 secretName: oauth-token 41 - name: config 42 configMap: 43 name: config 44 - name: job-config 45 configMap: 46 name: job-config