Skip to content

Commit 7f1eb0c

Browse files
committed
Fix template to catch empty objects
1 parent 074c132 commit 7f1eb0c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,15 @@ spec:
9595
- "database.recoverylog=false" # Tune ZAP, DB recovery is not needed here
9696
- "-config"
9797
- "connection.timeoutInSecs=120" # Tune ZAP timeout by default to be 2minutes
98-
{{ if .Values.zapConfiguration.global.addonUpdate }}
98+
{{ if and .Values.zapConfiguration.global .Values.zapConfiguration.global.addonUpdate }}
9999
- "-addonupdate" # Enable AddOn Updates on startup if possible
100100
{{- end }}
101+
{{- if and .Values.zapConfiguration.global .Values.zapConfiguration.global.addonInstall }}
101102
{{- range .Values.zapConfiguration.global.addonInstall }}
102103
- "-addoninstall"
103104
- {{ . | quote }}
104105
{{- end }}
106+
{{- end }}
105107
- "-config"
106108
- "api.disablekey=true" # Disble API Key because not required. Only pod local access allowed (localhost binding).
107109
resources:

0 commit comments

Comments
 (0)