Skip to content

Commit

Permalink
let the customer select some settings for the volumes
Browse files Browse the repository at this point in the history
most important is the inmemory setting for the socket
  • Loading branch information
unglaublicherdude committed Jun 28, 2024
1 parent c841e26 commit 42514bb
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 1 deletion.
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.9.1
version: 1.9.2
17 changes: 17 additions & 0 deletions charts/gdscan/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ spec:
emptyDir: {}
{{- end }}
- name: scan-socket
{{- if or (.Values.scanSocketFolder.inmemory) }}
emptyDir:
{{- if .Values.scanSocketFolder.inmemory }}
medium : "Memory"
{{- end }}
{{- else }}
emptyDir: {}
{{- end }}
- name: client-tmp
{{- if or (.Values.client.tempfolder.inmemory) (.Values.client.tempfolder.sizeLimit.enabled) }}
emptyDir:
Expand All @@ -62,7 +69,17 @@ spec:
emptyDir: {}
{{- end }}
- name: server-var-log
{{- if or (.Values.server.logFolder.inmemory) (.Values.server.logFolder.sizeLimit.enabled) }}
emptyDir:
{{- if .Values.server.logFolder.sizeLimit.enabled }}
sizeLimit: {{ .Values.server.logFolder.sizeLimit.size | quote }}
{{- end }}
{{- if .Values.server.logFolder.inmemory }}
medium : "Memory"
{{- end }}
{{- else }}
emptyDir: {}
{{- end }}
{{- include "gdscan.imagePullSecrets" . | nindent 6 }}
containers:
- name: {{ .Values.server.name }}
Expand Down
37 changes: 37 additions & 0 deletions charts/gdscan/templates/stateful-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,50 @@ spec:
{{- include "gdscan.imagePullSecrets" . | nindent 6 }}
volumes:
- name: server-tmp
{{- if or (.Values.server.tempfolder.inmemory) (.Values.server.tempfolder.sizeLimit.enabled) }}
emptyDir:
{{- if .Values.server.tempfolder.sizeLimit.enabled }}
sizeLimit: {{ .Values.server.tempfolder.sizeLimit.size | quote }}
{{- end }}
{{- if .Values.server.tempfolder.inmemory }}
medium : "Memory"
{{- end }}
{{- else }}
emptyDir: {}
{{- end }}
- name: scan-socket
{{- if or (.Values.scanSocketFolder.inmemory) (.Values.scanSocketFolder.sizeLimit.enabled) }}
emptyDir:
{{- if .Values.scanSocketFolder.inmemory }}
medium : "Memory"
{{- end }}
{{- else }}
emptyDir: {}
{{- end }}
- name: client-tmp
{{- if or (.Values.client.tempfolder.inmemory) (.Values.client.tempfolder.sizeLimit.enabled) }}
emptyDir:
{{- if .Values.client.tempfolder.sizeLimit.enabled }}
sizeLimit: {{ .Values.client.tempfolder.sizeLimit.size | quote }}
{{- end }}
{{- if .Values.client.tempfolder.inmemory }}
medium : "Memory"
{{- end }}
{{- else }}
emptyDir: {}
{{- end }}
- name: server-var-log
{{- if or (.Values.server.logFolder.inmemory) (.Values.server.logFolder.sizeLimit.enabled) }}
emptyDir:
{{- if .Values.server.logFolder.sizeLimit.enabled }}
sizeLimit: {{ .Values.server.logFolder.sizeLimit.size | quote }}
{{- end }}
{{- if .Values.server.logFolder.inmemory }}
medium : "Memory"
{{- end }}
{{- else }}
emptyDir: {}
{{- end }}
containers:
- name: {{ .Values.server.name }}
env:
Expand Down
7 changes: 7 additions & 0 deletions charts/gdscan/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
replicaCount: 1
deploymentStrategy: "Recreate"
scanSocketFolder:
inmemory: false
server:
name: server
image:
Expand All @@ -11,6 +13,11 @@ server:
sizeLimit:
enabled: false
size: 1Gi
logFolder:
inmemory: false
sizeLimit:
enabled: false
size: 1Gi
containerSecurityContext:
enabled: true
readOnlyRootFilesystem: true
Expand Down

0 comments on commit 42514bb

Please sign in to comment.