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

Commit 5cf9314

Browse files
committed
Fix issue on ncrack installation when no volumes are mounted
1 parent 4282da5 commit 5cf9314

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ spec:
2020
resources:
2121
{{- toYaml .Values.scannerJob.resources | nindent 16 }}
2222
volumeMounts:
23-
{{- if .Values.scannerJob.extraVolumeMounts }}
24-
{{- toYaml .Values.scannerJob.extraVolumeMounts | nindent 14 }}
25-
{{- end }}
23+
{{- toYaml .Values.scannerJob.extraVolumeMounts | nindent 16 }}
2624
volumes:
27-
{{- if .Values.scannerJob.extraVolumes }}
28-
{{- toYaml .Values.scannerJob.extraVolumes | nindent 10 }}
29-
{{- end }}
25+
{{- toYaml .Values.scannerJob.extraVolumes | nindent 12 }}
3026

0 commit comments

Comments
 (0)