Skip to content

Commit e3eb0f9

Browse files
committed
#1330 Added missing podSecurityContext
to scanner template Signed-off-by: Robert Seedorff <Robert.Seedorff@iteratec.com>
1 parent b296eef commit e3eb0f9

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎.templates/new-scanner/templates/new-scanner-scan-type.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ spec:
2727
{{- toYaml .Values.scanner.affinity | nindent 12 }}
2828
tolerations:
2929
{{- toYaml .Values.scanner.tolerations | nindent 12 }}
30+
securityContext:
31+
{{- toYaml .Values.scanner.podSecurityContext | nindent 12 }}
3032
containers:
3133
- name: new-scanner
3234
image: "{{ .Values.scanner.image.repository }}:{{ .Values.scanner.image.tag | default .Chart.AppVersion }}"

‎.templates/new-scanner/values.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ parser:
1717

1818
# parser.ttlSecondsAfterFinished -- seconds after which the kubernetes job for the parser will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/
1919
ttlSecondsAfterFinished: null
20+
2021
# parser.env -- Optional environment variables mapped into each parseJob (see: https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/)
2122
env: []
2223

@@ -75,6 +76,11 @@ scanner:
7576
# scanner.extraContainers -- Optional additional Containers started with each scanJob (see: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/)
7677
extraContainers: []
7778

79+
# scanner.podSecurityContext -- Optional securityContext set on scanner pod (see: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/)
80+
podSecurityContext:
81+
{}
82+
# fsGroup: 2000
83+
7884
# scanner.securityContext -- Optional securityContext set on scanner container (see: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/)
7985
securityContext:
8086
# scanner.securityContext.runAsNonRoot -- Enforces that the scanner image is run as a non root user

0 commit comments

Comments
 (0)