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 }}