Skip to content

Commit

Permalink
Merge pull request #46 from GDATASoftwareAG/add-a-debug-switch
Browse files Browse the repository at this point in the history
adds debug logging
  • Loading branch information
GermanCoding authored Jun 18, 2024
2 parents 88c3ec4 + 3318f16 commit 7a34d47
Show file tree
Hide file tree
Showing 4 changed files with 10 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.8.0
version: 1.9.0
4 changes: 4 additions & 0 deletions charts/gdscan/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ spec:
env:
- name: HostOptions__ShutdownTimeout
value: {{ include "common.secondsToHHMMSS" .Values.terminationGracePeriodSeconds | quote }}
{{- if .Values.debug }}
- name: Serilog__MinimumLevel__Override__ScanClient.Controllers.ScanController
value: Debug
{{- end }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
{{- with .Values.nodeSelector }}
nodeSelector:
Expand Down
3 changes: 3 additions & 0 deletions charts/gdscan/templates/update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ spec:
{{- end }}
command:
- "kubectl"
{{- if .Values.debug }}
- "-v=8"
{{- end }}
- "rollout"
- "restart"
{{- if and (.Values.persistence.enabled) (eq .Values.persistence.accessMode "ReadWriteOnce" ) }}
Expand Down
2 changes: 2 additions & 0 deletions charts/gdscan/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,5 @@ autoUpdate:
networkPolicy:
enabled: true
k8sApiPort: 6443

debug: false

0 comments on commit 7a34d47

Please sign in to comment.