Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit f458f5f

Browse files
committed
Only apply ttlSecondsAfterFinished when set in values
1 parent af3da2a commit f458f5f

File tree

21 files changed

+49
-14
lines changed

21 files changed

+49
-14
lines changed

scanners/amass/templates/amass-scan-type.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ spec:
1010
location: "/home/securecodebox/amass-results.jsonl"
1111
jobTemplate:
1212
spec:
13-
ttlSecondsAfterFinished: 10
13+
{{- if .Values.scannerJob.ttlSecondsAfterFinished }}
14+
ttlSecondsAfterFinished: {{ .Values.scannerJob.ttlSecondsAfterFinished }}
15+
{{- end }}
1416
template:
1517
spec:
1618
restartPolicy: OnFailure

scanners/amass/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ parserImage:
44
tag: latest
55

66
scannerJob:
7+
ttlSecondsAfterFinished: null
78
resources: {}
89
# scannerJob:
910
# resources:

scanners/kube-hunter/templates/kubehunter-scan-type.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ spec:
88
location: '/home/securecodebox/kube-hunter-results.json'
99
jobTemplate:
1010
spec:
11-
ttlSecondsAfterFinished: 10
11+
{{- if .Values.scannerJob.ttlSecondsAfterFinished }}
12+
ttlSecondsAfterFinished: {{ .Values.scannerJob.ttlSecondsAfterFinished }}
13+
{{- end }}
1214
template:
1315
spec:
1416
restartPolicy: Never

scanners/kube-hunter/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ parserImage:
44
tag: latest
55

66
scannerJob:
7+
ttlSecondsAfterFinished: null
78
resources: {}

scanners/ncrack/templates/ncrack-scan-type.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ spec:
88
location: "/home/securecodebox/ncrack-results.xml"
99
jobTemplate:
1010
spec:
11-
ttlSecondsAfterFinished: 10
11+
{{- if .Values.scannerJob.ttlSecondsAfterFinished }}
12+
ttlSecondsAfterFinished: {{ .Values.scannerJob.ttlSecondsAfterFinished }}
13+
{{- end }}
1214
backoffLimit: 3
1315
template:
1416
spec:

scanners/ncrack/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ parserImage:
44
tag: latest
55

66
scannerJob:
7+
ttlSecondsAfterFinished: null
78
resources: {}
8-

scanners/nikto/templates/nikto-scan-type.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ spec:
88
location: '/home/securecodebox/nikto-results.json'
99
jobTemplate:
1010
spec:
11-
ttlSecondsAfterFinished: 10
11+
{{- if .Values.scannerJob.ttlSecondsAfterFinished }}
12+
ttlSecondsAfterFinished: {{ .Values.scannerJob.ttlSecondsAfterFinished }}
13+
{{- end }}
1214
template:
1315
spec:
1416
restartPolicy: Never

scanners/nikto/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ parserImage:
44
tag: latest
55

66
scannerJob:
7+
ttlSecondsAfterFinished: null
78
resources: {}
89
# scannerJob:
910
# resources:

scanners/nmap/templates/nmap-scan-type.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ spec:
88
location: "/home/securecodebox/nmap-results.xml"
99
jobTemplate:
1010
spec:
11-
ttlSecondsAfterFinished: 10
11+
{{- if .Values.scannerJob.ttlSecondsAfterFinished }}
12+
ttlSecondsAfterFinished: {{ .Values.scannerJob.ttlSecondsAfterFinished }}
13+
{{- end }}
1214
backoffLimit: 3
1315
template:
1416
spec:

scanners/nmap/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ parserImage:
44
tag: latest
55

66
scannerJob:
7+
ttlSecondsAfterFinished: null
78
resources: {}
89
# scannerJob:
910
# resources:

0 commit comments

Comments
 (0)