Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

let the customer select some settings for the volumes #50

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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