github.com/zppinho/prow@v0.0.0-20240510014325-1738badeb017/cmd/branchprotector/oneshot-job.yaml (about) 1 apiVersion: batch/v1 2 kind: Job 3 metadata: 4 name: branchprotector 5 spec: 6 backoffLimit: 2 7 template: 8 metadata: 9 name: branchprotector 10 spec: 11 containers: 12 - name: branchprotector 13 image: gcr.io/k8s-testimages/branchprotector:latest # Note: not gcr.io/k8s-prow for dev 14 imagePullPolicy: Always # Good practice for dev/debugging, bad for prod 15 args: 16 - --config-path=/etc/config/config.yaml 17 - --github-token-path=/etc/github/oauth 18 volumeMounts: 19 - name: oauth 20 mountPath: /etc/github 21 readOnly: true 22 - name: config 23 mountPath: /etc/config 24 readOnly: true 25 restartPolicy: Never 26 volumes: 27 - name: oauth 28 secret: 29 secretName: oauth-token 30 - name: config 31 configMap: 32 name: config