mirror of
https://github.com/kyverno/policy-reporter.git
synced 2024-12-14 11:57:32 +00:00
update UI logging config
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
This commit is contained in:
parent
ad33397a3e
commit
fc46eeae76
3 changed files with 19 additions and 5 deletions
|
@ -128,4 +128,13 @@ Create the name of the service account to use
|
|||
{{- else -}}
|
||||
{{- .Release.Namespace -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/* Get the namespace name. */}}
|
||||
{{- define "ui.logLevel" -}}
|
||||
{{- if .Values.api.logging -}}
|
||||
-1
|
||||
{{- else -}}
|
||||
{{- .Values.logging.logLevel -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -38,7 +38,10 @@ data:
|
|||
{{- toYaml . | nindent 6 }}
|
||||
{{- end }}
|
||||
|
||||
{{- with .Values.logging }}
|
||||
logging:
|
||||
{{- toYaml . | nindent 6 }}
|
||||
{{- end }}
|
||||
encoding: {{ .Values.logging.encoding }}
|
||||
logLevel: {{ include "ui.logLevel" . }}
|
||||
development: {{ .Values.logging.development }}
|
||||
|
||||
apiConfig:
|
||||
logging: {{ .Values.api.logging }}
|
|
@ -67,11 +67,13 @@ labelFilter: []
|
|||
|
||||
# Proxy request logging
|
||||
logging:
|
||||
enabled: false # enables additional logging about proxy requests
|
||||
encoding: console # possible encodings are console and json
|
||||
logLevel: 0 # default info
|
||||
development: false # more human readable structure, removes log sampling
|
||||
|
||||
api:
|
||||
logging: false # enables access logging for proxy requests, sets log level to debug
|
||||
|
||||
# use redis as external log storage instead of an in memory store
|
||||
# recommended when using a HA setup with more then one replica
|
||||
# to get all logs on each instance
|
||||
|
|
Loading…
Reference in a new issue