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

Commit 9d7ad24

Browse files
committed
Add Possibility to Change Scanner and Hook Images
To make it possible to change the docker images for scanners and hooks via values.xml I updated the following charts: - kube-hunter - ncrack - nikto - nmap - test-scan This is necessary for these charts because we do not use the official images for these scanners/hooks and cannot rely on their image tags
1 parent ba0e0f5 commit 9d7ad24

File tree

10 files changed

+27
-4
lines changed

10 files changed

+27
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
restartPolicy: Never
1717
containers:
1818
- name: kube-hunter
19-
image: securecodebox/kube-hunter:latest
19+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.Version }}"
2020
command:
2121
- 'sh'
2222
- '/wrapper.sh'

scanners/kube-hunter/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ parserImage:
33
# parserImage.tag - defaults to the charts version
44
tag: null
55

6+
image:
7+
repository: docker.io/securecodebox/scanner-kube-hunter
8+
# image.tag - defaults to the charts version
9+
tag: null
10+
611
scannerJob:
712
ttlSecondsAfterFinished: null
813
resources: {}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
restartPolicy: OnFailure
1818
containers:
1919
- name: ncrack
20-
image: securecodebox/ncrack:0.7
20+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.Version }}"
2121
command: ["ncrack", "-oX", "/home/securecodebox/ncrack-results.xml"]
2222
resources:
2323
{{- toYaml .Values.scannerJob.resources | nindent 16 }}

scanners/ncrack/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ parserImage:
33
# parserImage.tag - defaults to the charts version
44
tag: null
55

6+
image:
7+
repository: docker.io/securecodebox/scanner-ncrack
8+
# image.tag - defaults to the charts version
9+
tag: null
10+
611
scannerJob:
712
ttlSecondsAfterFinished: null
813
resources: {}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ spec:
1717
containers:
1818
- name: nikto
1919
image: securecodebox/nikto:latest
20+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.Version }}"
2021
command:
2122
# Nikto Entrypoint Script to avoid problems nikto exiting with a non zero exit code
2223
# This would cause the kubernetes job to fail no matter what

scanners/nikto/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ parserImage:
33
# parserImage.tag - defaults to the charts version
44
tag: null
55

6+
image:
7+
repository: docker.io/securecodebox/scanner-nikto
8+
# image.tag - defaults to the charts version
9+
tag: null
10+
611
scannerJob:
712
ttlSecondsAfterFinished: null
813
resources: {}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
restartPolicy: OnFailure
1818
containers:
1919
- name: nmap
20-
image: securecodebox/nmap:7.80
20+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.Version }}"
2121
command: ["nmap", "-oX", "/home/securecodebox/nmap-results.xml"]
2222
resources:
2323
{{- toYaml .Values.scannerJob.resources | nindent 16 }}

scanners/nmap/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ parserImage:
33
# parserImage.tag - defaults to the charts version
44
tag: null
55

6+
image:
7+
repository: docker.io/securecodebox/scanner-nmap
68
scannerJob:
79
ttlSecondsAfterFinished: null
810
resources: {}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
restartPolicy: OnFailure
1818
containers:
1919
- name: test-scan
20-
image: securecodebox/test-scan:latest
20+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.Version }}"
2121
command: ["touch", "/home/securecodebox/hello-world.txt"]
2222
resources:
2323
{{- toYaml .Values.scannerJob.resources | nindent 16 }}

scanners/test-scan/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ parserImage:
33
# parserImage.tag - defaults to the charts version
44
tag: null
55

6+
image:
7+
repository: docker.io/securecodebox/scanner-test-scan
8+
# image.tag - defaults to the charts version
9+
tag: null
10+
611
scannerJob:
712
ttlSecondsAfterFinished: null
813
resources: {}

0 commit comments

Comments
 (0)