Skip to content

Commit

Permalink
Better control over log verbosity.
Browse files Browse the repository at this point in the history
  • Loading branch information
michalschott committed Jul 13, 2021
1 parent 4ea7f65 commit cb59f14
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
7 changes: 4 additions & 3 deletions charts/aws-ebs-csi-driver/templates/controller.yaml
Expand Up @@ -147,7 +147,7 @@ spec:
image: {{ printf "%s:%s" .Values.sidecars.provisionerImage.repository .Values.sidecars.provisionerImage.tag }}
args:
- --csi-address=$(ADDRESS)
- --v=5
- --v={{ .Values.controller.logLevel }}
- --feature-gates=Topology=true
{{- if or .Values.controller.extraCreateMetadata .Values.extraCreateMetadata }}
- --extra-create-metadata
Expand All @@ -174,7 +174,7 @@ spec:
image: {{ printf "%s:%s" .Values.sidecars.attacherImage.repository .Values.sidecars.attacherImage.tag }}
args:
- --csi-address=$(ADDRESS)
- --v=5
- --v={{ .Values.controller.logLevel }}
- --leader-election=true
env:
- name: ADDRESS
Expand Down Expand Up @@ -220,7 +220,7 @@ spec:
imagePullPolicy: Always
args:
- --csi-address=$(ADDRESS)
- --v=5
- --v={{ .Values.controller.logLevel }}
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
Expand All @@ -241,6 +241,7 @@ spec:
image: {{ printf "%s:%s" .Values.sidecars.livenessProbeImage.repository .Values.sidecars.livenessProbeImage.tag }}
args:
- --csi-address=/csi/csi.sock
- -v {{ .Values.controller.logLevel }}
volumeMounts:
- name: socket-dir
mountPath: /csi
Expand Down
5 changes: 3 additions & 2 deletions charts/aws-ebs-csi-driver/templates/node-windows.yaml
Expand Up @@ -58,7 +58,7 @@ spec:
- --volume-attach-limit={{ .Values.volumeAttachLimit }}
{{- end }}
- --logtostderr
- --v=5
- --v={{ .Values.node.logLevel }}
env:
- name: CSI_ENDPOINT
value: unix:/csi/csi.sock
Expand Down Expand Up @@ -108,7 +108,7 @@ spec:
args:
- --csi-address=$(ADDRESS)
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
- --v=5
- --v={{ .Values.nodeWindows.logLevel }}
env:
- name: ADDRESS
value: unix:/csi/csi.sock
Expand Down Expand Up @@ -140,6 +140,7 @@ spec:
image: {{ printf "%s:%s" .Values.sidecars.livenessProbeImage.repository .Values.sidecars.livenessProbeImage.tag }}
args:
- --csi-address=unix:/csi/csi.sock
- -v {{ .Values.node.logLevel }}
volumeMounts:
- name: plugin-dir
mountPath: C:\csi
Expand Down
3 changes: 2 additions & 1 deletion charts/aws-ebs-csi-driver/templates/node.yaml
Expand Up @@ -107,7 +107,7 @@ spec:
args:
- --csi-address=$(ADDRESS)
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
- --v=5
- --v={{ .Values.node.logLevel }}
env:
- name: ADDRESS
value: /csi/csi.sock
Expand All @@ -132,6 +132,7 @@ spec:
image: {{ printf "%s:%s" .Values.sidecars.livenessProbeImage.repository .Values.sidecars.livenessProbeImage.tag }}
args:
- --csi-address=/csi/csi.sock
- -v {{ .Values.node.logLevel }}
volumeMounts:
- name: plugin-dir
mountPath: /csi
Expand Down
Expand Up @@ -65,4 +65,4 @@ spec:
- name: {{ . }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit cb59f14

Please sign in to comment.