Skip to content

Commit

Permalink
add securitycontext for server
Browse files Browse the repository at this point in the history
  • Loading branch information
doxthree committed Nov 21, 2023
1 parent e3b0f88 commit 34c3ddd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/gdscan/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ maintainers:
- name: G DATA CyberDefense AG
email: [email protected]
type: application
version: 1.3.5
version: 1.4.0
2 changes: 2 additions & 0 deletions charts/gdscan/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ spec:
mountPath: /tmp/scan
- name: scan-socket
mountPath: /var/share/run
- name: server-var-log
mountPath: /var/log
resources:
{{- toYaml .Values.resources.server | nindent 12 }}
- name: {{ .Values.client.name }}
Expand Down
9 changes: 8 additions & 1 deletion charts/gdscan/templates/stateful-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,26 @@ spec:
value: "{{ now | unixEpoch }}"
image: "{{ .Values.server.image.repository }}:{{ .Values.server.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.server.image.pullPolicy }}
{{- if .Values.server.containerSecurityContext.enabled }}
securityContext: {{- omit .Values.server.containerSecurityContext "enabled" | toYaml | nindent 12 }}
{{- end }}
volumeMounts:
- name: samples
mountPath: /tmp/scan
- name: scan-socket
mountPath: /var/share/run
{{- if .Values.server.containerSecurityContext.enabled }}
- name: server-var-log
mountPath: /var/log
{{- end }}
resources:
{{- toYaml .Values.resources.server | nindent 12 }}
- name: {{ .Values.client.name }}
image: "{{ .Values.client.image.repository }}:{{ .Values.client.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.client.image.pullPolicy }}
{{- if .Values.client.containerSecurityContext.enabled }}
securityContext: {{- omit .Values.client.containerSecurityContext "enabled" | toYaml | nindent 12 }}
{{- end }}
{{- end }}
volumeMounts:
- name: samples
mountPath: /tmp/scan
Expand Down
2 changes: 2 additions & 0 deletions charts/gdscan/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ server:
repository: ghcr.io/gdatasoftwareag/scanserver
pullPolicy: Always
tag: 1.8.0
containerSecurityContext:
enabled: false
client:
name: client
image:
Expand Down

0 comments on commit 34c3ddd

Please sign in to comment.