Skip to content

Commit

Permalink
Allow to configure log format in helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
zifter committed Oct 4, 2023
1 parent 98e7a02 commit 3865315
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
8 changes: 2 additions & 6 deletions install/helm/open-match/templates/om-configmap-default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,11 @@ metadata:
data:
matchmaker_config_default.yaml: |-
logging:
{{- if .Values.global.logging.level }}
level: {{ .Values.global.logging.level }}
{{- else }}
level: debug
{{- end }}
level: {{ default "debug" .Values.global.logging.level }}
{{- if .Values.global.telemetry.stackdriverMetrics.enabled }}
format: stackdriver
{{- else }}
format: text
format: {{ default "text" .Values.global.logging.format }}
{{- end }}
rpc: {{ .Values.global.logging.rpc.enabled }}
# Open Match applies the exponential backoff strategy for its retryable gRPC calls.
Expand Down
1 change: 1 addition & 0 deletions install/helm/open-match/values-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ global:
mountPath: /app/secrets/tls/rootca

logging:
level: info
rpc:
enabled: false

Expand Down
2 changes: 2 additions & 0 deletions install/helm/open-match/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ global:
mountPath: /app/secrets/tls/rootca

logging:
level: info
format: text
rpc:
enabled: false

Expand Down

0 comments on commit 3865315

Please sign in to comment.