Skip to content

Commit

Permalink
add log levels to csi
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
  • Loading branch information
AleksZimin committed Mar 31, 2024
1 parent d8a73a5 commit c436bc1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions templates/sds-local-volume-csi/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,18 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: LOG_LEVEL
{{- if eq .Values.sdsLocalVolume.logLevel "ERROR" }}
value: "0"
{{- else if eq .Values.sdsLocalVolume.logLevel "WARN" }}
value: "1"
{{- else if eq .Values.sdsLocalVolume.logLevel "INFO" }}
value: "2"
{{- else if eq .Values.sdsLocalVolume.logLevel "DEBUG" }}
value: "3"
{{- else if eq .Values.sdsLocalVolume.logLevel "TRACE" }}
value: "4"
{{- end }}
image: {{ include "helm_lib_module_image" (list . "sdsLocalVolumeCsi") }}
imagePullPolicy: IfNotPresent
livenessProbe:
Expand Down Expand Up @@ -511,6 +523,18 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: LOG_LEVEL
{{- if eq .Values.sdsLocalVolume.logLevel "ERROR" }}
value: "0"
{{- else if eq .Values.sdsLocalVolume.logLevel "WARN" }}
value: "1"
{{- else if eq .Values.sdsLocalVolume.logLevel "INFO" }}
value: "2"
{{- else if eq .Values.sdsLocalVolume.logLevel "DEBUG" }}
value: "3"
{{- else if eq .Values.sdsLocalVolume.logLevel "TRACE" }}
value: "4"
{{- end }}
image: {{ include "helm_lib_module_image" (list . "sdsLocalVolumeCsi") }}
imagePullPolicy: IfNotPresent
livenessProbe:
Expand Down

0 comments on commit c436bc1

Please sign in to comment.