From 9cdc611683bdbb668fe3e3cd7ff3dfff7c68c8c7 Mon Sep 17 00:00:00 2001 From: unglaublicherdude Date: Tue, 18 Jun 2024 11:25:58 +0200 Subject: [PATCH 1/3] adds debug logging --- charts/gdscan/templates/deployment.yaml | 4 ++++ charts/gdscan/values.yaml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/charts/gdscan/templates/deployment.yaml b/charts/gdscan/templates/deployment.yaml index a224e6e..65dd5c8 100644 --- a/charts/gdscan/templates/deployment.yaml +++ b/charts/gdscan/templates/deployment.yaml @@ -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: diff --git a/charts/gdscan/values.yaml b/charts/gdscan/values.yaml index 5f8fc93..dfd0512 100644 --- a/charts/gdscan/values.yaml +++ b/charts/gdscan/values.yaml @@ -123,3 +123,5 @@ autoUpdate: networkPolicy: enabled: true k8sApiPort: 6443 + +debug: false From d91d9075b88c724b5e0f8cd5b1d2182868e999ef Mon Sep 17 00:00:00 2001 From: unglaublicherdude Date: Tue, 18 Jun 2024 11:30:26 +0200 Subject: [PATCH 2/3] also debug log to autoupdate --- charts/gdscan/templates/update.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/gdscan/templates/update.yaml b/charts/gdscan/templates/update.yaml index 96f794d..b3e8f90 100644 --- a/charts/gdscan/templates/update.yaml +++ b/charts/gdscan/templates/update.yaml @@ -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" ) }} From 3318f1674da04557517ff997e280c9c722179384 Mon Sep 17 00:00:00 2001 From: unglaublicherdude Date: Tue, 18 Jun 2024 11:32:39 +0200 Subject: [PATCH 3/3] increase Version --- charts/gdscan/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/gdscan/Chart.yaml b/charts/gdscan/Chart.yaml index 597c29d..05713eb 100644 --- a/charts/gdscan/Chart.yaml +++ b/charts/gdscan/Chart.yaml @@ -5,4 +5,4 @@ maintainers: - name: G DATA CyberDefense AG email: oem@gdata.de type: application -version: 1.8.0 +version: 1.9.0