Skip to content

Commit b84357c

Browse files
J12934rfelber
authored andcommitted
Expose Zap image as helm config value
1 parent 00a45fd commit b84357c

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

scanners/zap/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: A Helm chart for the OWASP ZAP security scanner that integrates wit
55
type: application
66
# version - gets automatically set to the secureCodeBox release version when the helm charts gets published
77
version: latest
8-
appVersion: v2.9.0
8+
appVersion: "w2020-10-13"
99
kubeVersion: ">=v1.11.0"
1010

1111
keywords:

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
restartPolicy: Never
1717
containers:
1818
- name: zap-baseline
19-
image: owasp/zap2docker-weekly:w2020-09-29
19+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
2020
command:
2121
- "zap-baseline.py"
2222
# Force Zap to always return a zero exit code. k8s would otherwise try to restart zap.
@@ -57,7 +57,7 @@ spec:
5757
restartPolicy: Never
5858
containers:
5959
- name: zap-api-scan
60-
image: owasp/zap2docker-weekly:w2020-09-29
60+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
6161
command:
6262
- "zap-api-scan.py"
6363
# Force Zap to always return a zero exit code. k8s would otherwise try to restart zap.
@@ -98,7 +98,7 @@ spec:
9898
restartPolicy: Never
9999
containers:
100100
- name: zap-full-scan
101-
image: owasp/zap2docker-weekly:w2020-09-29
101+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
102102
command:
103103
- "zap-full-scan.py"
104104
# Force Zap to always return a zero exit code. k8s would otherwise try to restart zap.

scanners/zap/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
image:
2+
# image.repository -- Container Image to run the scan
3+
repository: owasp/zap2docker-weekly
4+
# image.tag - defaults to the charts appVersion
5+
tag: null
6+
17
parserImage:
28
# parserImage.repository -- Parser image repository
39
repository: docker.io/scbexperimental/parser-zap

0 commit comments

Comments
 (0)