From c15ed2f7341c145583926bfdcfcc594655c7a180 Mon Sep 17 00:00:00 2001 From: Alex <1353716+alexstojda@users.noreply.github.com> Date: Fri, 25 Oct 2024 12:17:11 -0400 Subject: [PATCH] fix(logging): Sync logging options to cert-manager runtime - Sync logging format and log level configuration to the logger used by the cert-manager runtime --- deploy/charts/godaddy-webhook/templates/deployment.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy/charts/godaddy-webhook/templates/deployment.yaml b/deploy/charts/godaddy-webhook/templates/deployment.yaml index debfdb5..9fd8c30 100644 --- a/deploy/charts/godaddy-webhook/templates/deployment.yaml +++ b/deploy/charts/godaddy-webhook/templates/deployment.yaml @@ -1,3 +1,4 @@ +{{- $logLevels := dict "fatal" 0 "panic" 0 "error" 0 "warn" 1 "info" 2 "debug" 4 "trace" 5 -}} apiVersion: apps/v1 kind: Deployment metadata: @@ -29,6 +30,10 @@ spec: - --tls-cert-file=/tls/tls.crt - --tls-private-key-file=/tls/tls.key - --secure-port={{ default 443 .Values.pod.securePort }} + - --v {{ index $logLevels .Values.logging.level }} + {{- if or (eq .Values.logging.format "text") (eq .Values.logging.format "json") }} + - --logging-format={{ .Values.logging.format }} + {{- end }} env: - name: GROUP_NAME value: {{ .Values.groupName | quote }}