Skip to content

Commit 1390c59

Browse files
DevikHarukoJ12934
authored andcommitted
secureCodeBox#3295 Added affinity and tolerations fields to ssh-audit-scan-type.yaml
As described in issue secureCodeBox#3259, the ssh-audit-scan-type.yaml does not contain fields for affinity and tolerations configuration, unlike other scan type templates such as nmap. This commit adds the required fields to specify affinity rules/taints/tolerations. Signed-off-by: DevikHaruko <devik.rawal@haruko.io>
1 parent 32ddebf commit 1390c59

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

scanners/ssh-audit/templates/ssh-audit-scan-type.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,17 @@ spec:
1919
backoffLimit: {{ .Values.scanner.backoffLimit }}
2020
template:
2121
spec:
22-
restartPolicy: Never
22+
restartPolicy: OnFailure
23+
affinity:
24+
{{- toYaml .Values.scanner.affinity | nindent 12 }}
25+
tolerations:
26+
{{- toYaml .Values.scanner.tolerations | nindent 12 }}
27+
{{- with .Values.imagePullSecrets }}
28+
imagePullSecrets:
29+
{{- toYaml . | nindent 12 }}
30+
{{- end }}
31+
securityContext:
32+
{{- toYaml .Values.scanner.podSecurityContext | nindent 12 }}
2333
containers:
2434
- name: ssh-audit
2535
image: "{{ .Values.scanner.image.repository }}:{{ .Values.scanner.image.tag | default .Chart.AppVersion }}"
@@ -43,4 +53,4 @@ spec:
4353
{{- with .Values.scanner.nodeSelector }}
4454
nodeSelector:
4555
{{- toYaml . | nindent 12 }}
46-
{{- end }}
56+
{{- end }}

0 commit comments

Comments
 (0)