File tree 6 files changed +39
-2
lines changed
virtualization-controller
6 files changed +39
-2
lines changed Original file line number Diff line number Diff line change @@ -184,3 +184,18 @@ properties:
184
184
properties :
185
185
type :
186
186
enum : ["ObjectStorage"]
187
+ logLevel :
188
+ type : string
189
+ description : |
190
+ Sets a logging level.
191
+
192
+ Working for this components:
193
+ - `virtualization-api`
194
+ - `virtualization-controller`
195
+ - `kube-api-proxy`
196
+ - `vmi-router`
197
+ enum :
198
+ - " debug"
199
+ - " info"
200
+ - " warning"
201
+ - " error"
Original file line number Diff line number Diff line change @@ -91,3 +91,13 @@ properties:
91
91
bucket :
92
92
description : |
93
93
Контейнер, в котором вы можете хранить свои файлы и объекты данных.
94
+ logLevel :
95
+ type : string
96
+ description : |
97
+ Устанавливает уровень логирования.
98
+
99
+ Работает для следующих компонентов:
100
+ - `virtualization-api`
101
+ - `virtualization-controller`
102
+ - `kube-api-proxy`
103
+ - `vmi-router`
Original file line number Diff line number Diff line change 1
1
{ {- define " kube_api_rewriter.env" -} }
2
2
- name: LOG_LEVEL
3
- value: Debug
3
+ value: { { .Values.virtualization.logLevel } }
4
4
{ {- end -} }
5
5
6
6
{ {- define " kubeproxy_resources" -} }
31
31
image: { { $proxyImage } }
32
32
imagePullPolicy: IfNotPresent
33
33
env:
34
- { {- include " kube_api_rewriter.env" . | nindent 8 } }
34
+ { {- include " kube_api_rewriter.env" $ ctx | nindent 8 } }
35
35
resources:
36
36
requests:
37
37
{ {- include " helm_lib_module_ephemeral_storage_only_logs" . | nindent 12 } }
Original file line number Diff line number Diff line change 65
65
valueFrom :
66
66
fieldRef :
67
67
fieldPath : spec.nodeName
68
+ {{- if eq .Values.virtualization.logLevel "debug" }}
69
+ - name : VERBOSITY
70
+ value : " 10"
71
+ {{- end }}
68
72
resources :
69
73
requests :
70
74
{{- include "helm_lib_module_ephemeral_storage_only_logs" . | nindent 14 }}
Original file line number Diff line number Diff line change 65
65
- --kubevirt-cabundle=/etc/virt-api/certificates/ca.crt
66
66
- --kubevirt-endpoint=virt-api.d8-{{ .Chart.Name}}.svc
67
67
- --secure-port=8443
68
+ {{- if eq .Values.virtualization.logLevel "debug" }}
69
+ - --v=10
70
+ {{- else }}
68
71
- --v=3
72
+ {{- end }}
69
73
- --tls-cert-file=/etc/virtualziation-api/certificates/tls.crt
70
74
- --tls-private-key-file=/etc/virtualziation-api/certificates/tls.key
71
75
- --proxy-client-cert-file=/etc/virtualziation-api-proxy/certificates/tls.crt
Original file line number Diff line number Diff line change 3
3
- name: KUBECONFIG
4
4
value: "/kubeconfig.local/proxy.kubeconfig"
5
5
- name: VERBOSITY
6
+ { {- if eq .Values.virtualization.logLevel " debug" } }
7
+ value: "10"
8
+ { {- else } }
6
9
value: "3"
10
+ { {- end } }
7
11
- name: FORCE_BRIDGE_NETWORK_BINDING
8
12
value: "1"
9
13
- name: DISABLE_HYPERV_SYNIC
You can’t perform that action at this time.
0 commit comments