From bcbe100351b27890c7b72ff05b56f21a95c1dd89 Mon Sep 17 00:00:00 2001 From: Zbynek Roubalik Date: Tue, 24 May 2022 20:40:23 +0200 Subject: [PATCH] ability to specify timestamps in KEDA operator logs (#278) --- keda/README.md | 2 +- keda/templates/12-keda-deployment.yaml | 1 + keda/values.yaml | 6 +++++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/keda/README.md b/keda/README.md index 3eb02a99..0eba9fec 100644 --- a/keda/README.md +++ b/keda/README.md @@ -87,7 +87,7 @@ their default values. | `hashiCorpVaultTLS` | Name of the secret that will be mounted to the /vault path on the Pod to communicate over TLS with HashiCorp Vault (recommended). | `` | | `logging.operator.level` | Logging level for KEDA Operator. Allowed values are 'debug', 'info' & 'error'. | `info` | | `logging.operator.format` | Logging format for KEDA Operator. Allowed values are 'console' & 'json'. | `console` | -| `logging.operator.timeFormat` | Logging time format for KEDA Operator. Allowed values are 'epoch', 'millis', 'nano', or 'iso8601'. | `epoch` | +| `logging.operator.timeEncoding` | Logging time format for KEDA Operator. Allowed values are 'epoch', 'millis', 'nano', 'iso8601', 'rfc3339' or 'rfc3339nano'. | `rfc3339` | | `logging.metricServer.level` | Logging level for Metrics Server.Policy to use to pull Docker images. Allowed values are '0' for info, '4' for debug, or an integer value greater than 0, specified as string | `0` | | `securityContext` | Security context for all containers ([docs](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)) | [See below](#KEDA-is-secure-by-default) | | `securityContext.operator` | Security context of the operator container ([docs](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)) | [See below](#KEDA-is-secure-by-default) | diff --git a/keda/templates/12-keda-deployment.yaml b/keda/templates/12-keda-deployment.yaml index d7f90a24..19beaad1 100644 --- a/keda/templates/12-keda-deployment.yaml +++ b/keda/templates/12-keda-deployment.yaml @@ -60,6 +60,7 @@ spec: - --leader-elect - "--zap-log-level={{ .Values.logging.operator.level }}" - "--zap-encoder={{ .Values.logging.operator.format }}" + - "--zap-time-encoding={{ .Values.logging.operator.timeEncoding }}" {{- range $key, $value := .Values.extraArgs.keda }} - --{{ $key }}={{ $value }} {{- end }} diff --git a/keda/values.yaml b/keda/values.yaml index b3be3d12..9816d584 100644 --- a/keda/values.yaml +++ b/keda/values.yaml @@ -96,9 +96,13 @@ logging: # allowed values: 'debug', 'info', 'error', or an integer value greater than 0, specified as string # default value: info level: info - # allowed valuesL 'json' or 'console' + # allowed values: 'json' or 'console' # default value: console format: console + ## Logging time encoding for KEDA Operator + # allowed values are 'epoch', 'millis', 'nano', 'iso8601', 'rfc3339' or 'rfc3339nano' + # default value: rfc3339 + timeEncoding: rfc3339 metricServer: ## Logging level for Metrics Server # allowed values: '0' for info, '4' for debug, or an integer value greater than 0, specified as string