Skip to content

Commit

Permalink
Merge pull request #47 from GDATASoftwareAG/make-tempfolders-configur…
Browse files Browse the repository at this point in the history
…able

Make tempfolders configurable
  • Loading branch information
unglaublicherdude authored Jun 18, 2024
2 parents 7a34d47 + f51a158 commit dda08d6
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 11 deletions.
24 changes: 14 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,17 @@ helm upgrade gdscan gdscan/gdscan -f values.yaml

# Options

| Name | Description | Value |
| ------------------------------- | --------------------------------------------------------------------------------------------------------------------- | ------------------------ |
| `service.type` | service type | `ClusterIP` |
| `service.ports.api` | API service port | `8080` |
| `service.annotations` | service annotations | `{}` |
| `replicaCount` | number of pods | `1` |
| `autoscaling.enabled` | enable auto scaling | `false` |
| `autoscaling.maxReplicas` | maximum number of replicas | `20` |
| `autoscaling.metrics` | custom metrics for auto scaling | |
| `terminationGracePeriodSeconds` | max time in seconds for scans to complete | `30` |
| Name | Description | Value |
| ------------------------------- | -------------------------------------------------------------------------------- | ----------- |
| `service.type` | service type | `ClusterIP` |
| `service.ports.api` | API service port | `8080` |
| `service.annotations` | service annotations | `{}` |
| `replicaCount` | number of pods | `1` |
| `autoscaling.enabled` | enable auto scaling | `false` |
| `autoscaling.maxReplicas` | maximum number of replicas | `20` |
| `autoscaling.metrics` | custom metrics for auto scaling | |
| `terminationGracePeriodSeconds` | max time in seconds for scans to complete | `30` |
| `debug` | when activated the containers produce more verbose eg for analysing scan timings | `false` |
| `server.tempfolder.inmemory` | activates inmemory tempfolder | `false` |
| `client.tempfolder.inmemory` | activates inmemory tempfolder | `false` |

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.0
version: 1.9.1
20 changes: 20 additions & 0 deletions charts/gdscan/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,31 @@ spec:
{{- end }}
{{- end }}
- 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
emptyDir: {}
- 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
emptyDir: {}
{{- include "gdscan.imagePullSecrets" . | nindent 6 }}
Expand Down
10 changes: 10 additions & 0 deletions charts/gdscan/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ server:
repository: ghcr.io/gdatasoftwareag/vaas/scanserver
pullPolicy: Always
tag: 1
tempfolder:
inmemory: false
sizeLimit:
enabled: false
size: 1Gi
containerSecurityContext:
enabled: true
readOnlyRootFilesystem: true
Expand All @@ -19,6 +24,11 @@ server:
runAsUser: 1001
client:
name: client
tempfolder:
inmemory: false
sizeLimit:
enabled: false
size: 1Gi
image:
repository: ghcr.io/gdatasoftwareag/vaas/scanclient
pullPolicy: Always
Expand Down

0 comments on commit dda08d6

Please sign in to comment.