Skip to content

Commit d614c84

Browse files
committed
tweak default logging settings (no more epoch logging, PLEASE for the love of everything that is holy)
On-behalf-of: @SAP [email protected]
1 parent a052220 commit d614c84

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

charts/kcp-operator/templates/deployment.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: {{ include "kcp-operator.fullname" . }}
55
labels:
66
{{- include "kcp-operator.labels" . | nindent 4 }}
7-
annotations:
7+
annotations:
88
{{- .Values.annotations | toYaml | nindent 4 }}
99
spec:
1010
replicas: {{ .Values.replicaCount }}
@@ -43,6 +43,9 @@ spec:
4343
args:
4444
- --metrics-bind-address=:8443
4545
- --leader-elect={{ .Values.leaderElection.enabled | default true }}
46+
- --zap-log-level={{ .Values.logging.level }}
47+
- --zap-encoder={{ .Values.logging.encoder }}
48+
- --zap-time-encoding={{ .Values.logging.timeEncoding }}
4649
ports:
4750
- name: healthz
4851
containerPort: 8081

charts/kcp-operator/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ image:
2828
# This sets the pull policy for images.
2929
pullPolicy: IfNotPresent
3030

31+
logging:
32+
# one of 'debug', 'info', 'error', or any integer value > 0 which corresponds to custom debug levels of increasing verbosity
33+
level: info
34+
# one of 'json' or 'console'
35+
encoder: json
36+
# one of 'epoch', 'millis', 'nano', 'iso8601', 'rfc3339' or 'rfc3339nano'
37+
timeEncoding: iso8601
38+
3139
# This is for the secretes for pulling an image from a private repository. More information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/.
3240
imagePullSecrets: []
3341

0 commit comments

Comments
 (0)