-
Notifications
You must be signed in to change notification settings - Fork 0
/
scanner-job.yaml
38 lines (38 loc) · 1016 Bytes
/
scanner-job.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
apiVersion: batch/v1
kind: Job
metadata:
name: "{name}"
annotations:
ortStage: scanner
spec:
template:
spec:
volumes:
- name: ort-scratch
persistentVolumeClaim:
claimName: "{parent_name}-pvc"
- name: ort-config-volume
configMap:
name: ort-config
items:
- key: config.yml
path: config.yml
containers:
- name: ort
image: haikoschol/oss-review-toolkit:latest
args: ["--info", "scan", "-i", "/opt/ort-scratch/{parent_name}/analyzer-result.yml", "-o", "/opt/ort-scratch/{parent_name}/"]
volumeMounts:
- name: ort-scratch
mountPath: /opt/ort-scratch
- name: ort-config-volume
mountPath: /etc/ort
readOnly: true
resources:
requests:
memory: "2Gi"
cpu: "1"
limits:
memory: "4Gi"
cpu: "2"
restartPolicy: Never
backoffLimit: 0