Skip to content

Commit bfaf8a6

Browse files
committed
Added logging level
Signed-off-by: v.oleynikov <[email protected]>
1 parent 7724917 commit bfaf8a6

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

openapi/config-values.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,13 @@ properties:
99
type: boolean
1010
default: false
1111
description: Disable sds-node-configurator daemonset
12+
logLevel:
13+
type: string
14+
enum:
15+
- ERROR
16+
- WARN
17+
- INFO
18+
- DEBUG
19+
- TRACE
20+
description: Module log level
21+
default: INFO

openapi/doc-ru-config-values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ type: object
22
properties:
33
disableDs:
44
description: Выключить sds-node-configurator daemonset
5+
logLevel:
6+
description: Уровень логирования для приложений модуля

templates/agent/daemonset.yaml

+11-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,17 @@ spec:
3838
fieldRef:
3939
fieldPath: spec.nodeName
4040
- name: LOG_LEVEL
41-
value: "2" # 2-INFO, 3-DEBUG, 4-TRACE
41+
{{- if eq .Values.sdsNodeConfigurator.logLevel "ERROR" }}
42+
value: "0"
43+
{{- else if .Values.sdsNodeConfigurator.logLevel "WARN" }}
44+
value: "1"
45+
{{- else if .Values.sdsNodeConfigurator.logLevel "INFO" }}
46+
value: "2"
47+
{{- else if .Values.sdsNodeConfigurator.logLevel "DEBUG" }}
48+
value: "3"
49+
{{- else if .Values.sdsNodeConfigurator.logLevel "TRACE" }}
50+
value: "4"
51+
{{- end }}
4252
volumeMounts:
4353
- mountPath: /dev/
4454
name: host-device-dir

0 commit comments

Comments
 (0)