Skip to content

Commit 66c6a3c

Browse files
committed
Alternative fix for #1289
#1289 changes the behaviour to always create the configmap. This was intentionally changed, to allow users to manage this configmap outside of helm. Marking this as optional allows scans without it to still work and keep this behaviour.
1 parent 7a28b4b commit 66c6a3c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scanners/zap-advanced/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ scanner:
6969
- name: zap-advanced-scantype-config
7070
configMap:
7171
name: zap-advanced-scantype-config
72+
optional: true
7273
- name: zap-scripts-authentication
7374
configMap:
7475
name: zap-scripts-authentication
@@ -100,7 +101,7 @@ scanner:
100101
drop:
101102
# scanner.securityContext.capabilities.drop[0] -- This drops all linux privileges from the container.
102103
- all
103-
104+
104105
# scanner.affinity -- Optional affinity settings that control how the scanner job is scheduled (see: https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/)
105106
affinity: {}
106107

0 commit comments

Comments
 (0)