Skip to content

Commit

Permalink
Merge pull request #50 from alexstojda/fix/sync-logging-options-to-ru…
Browse files Browse the repository at this point in the history
…ntime

fix(logging): Sync logging options to cert-manager runtime
  • Loading branch information
cmoulliard authored Nov 4, 2024
2 parents ebac646 + c15ed2f commit 16e93b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deploy/charts/godaddy-webhook/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 16e93b8

Please sign in to comment.