Skip to content

Commit a8a73b7

Browse files
J12934Ilyesbdlala
andcommitted
Add missing template vars
Co-authored-by: Ilyes Bendlala <ilyes.bendlala@iteratec.com> Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
1 parent 791996a commit a8a73b7

1 file changed

Lines changed: 24 additions & 5 deletions

File tree

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,41 @@
1+
# SPDX-FileCopyrightText: 2021 iteratec GmbH
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
14
apiVersion: "execution.securecodebox.io/v1"
25
kind: ScanType
36
metadata:
47
name: "typo3scan"
58
spec:
69
extractResults:
710
type: typo3scan-json
8-
location: "/home/securecodebox/typo3scan-results.json"
11+
location: "/home/securecodebox/typo3scan.json"
912
jobTemplate:
1013
spec:
11-
ttlSecondsAfterFinished: 10
14+
{{- if .Values.scanner.ttlSecondsAfterFinished }}
15+
ttlSecondsAfterFinished: {{ .Values.scanner.ttlSecondsAfterFinished }}
16+
{{- end }}
17+
backoffLimit: {{ .Values.scanner.backoffLimit }}
1218
template:
1319
spec:
1420
restartPolicy: Never
1521
containers:
1622
- name: typo3scan
1723
image: "{{ .Values.scanner.image.repository }}:{{ .Values.scanner.image.tag | default .Chart.AppVersion }}"
1824
command:
19-
- "sh"
20-
- "/home/typo3scan/Typo3Scan/wrapper.sh"
25+
- "python3"
26+
- "/home/typo3scan/typo3scan.py"
2127
- "--no-interaction"
22-
- "--json"
28+
- "--json"
29+
resources:
30+
{{- toYaml .Values.scanner.resources | nindent 16 }}
31+
securityContext:
32+
{{- toYaml .Values.scanner.securityContext | nindent 16 }}
33+
env:
34+
{{- toYaml .Values.scanner.env | nindent 16 }}
35+
volumeMounts:
36+
{{- toYaml .Values.scanner.extraVolumeMounts | nindent 16 }}
37+
{{- if .Values.scanner.extraContainers }}
38+
{{- toYaml .Values.scanner.extraContainers | nindent 12 }}
39+
{{- end }}
40+
volumes:
41+
{{- toYaml .Values.scanner.extraVolumes | nindent 12 }}

0 commit comments

Comments
 (0)