Skip to content

Commit

Permalink
feat: add log timestamp format (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
almeynman authored Feb 23, 2024
1 parent ca9e3be commit d6347ca
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/openfga/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: openfga
description: A Kubernetes Helm chart for the OpenFGA project.

type: application
version: 0.1.36
version: 0.1.37
appVersion: "v1.4.3"

home: "https://openfga.github.io/helm-charts/charts/openfga"
Expand Down
5 changes: 5 additions & 0 deletions charts/openfga/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ spec:
value: {{ .Values.log.level }}
{{- end }}

{{- if .Values.log.timestampFormat }}
- name: OPENFGA_LOG_TIMESTAMP_FORMAT
value: {{ .Values.log.timestampFormat }}
{{- end }}

{{- if .Values.maxTuplesPerWrite }}
- name: OPENFGA_MAX_TUPLES_PER_WRITE
value: "{{ .Values.maxTuplesPerWrite }}"
Expand Down
9 changes: 9 additions & 0 deletions charts/openfga/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,15 @@
"json"
],
"default": "json"
},
"timestampFormat": {
"type": "string",
"description": "The timestamp format to use for the log output",
"enum": [
"Unix",
"ISO8601"
],
"default": "Unix"
}
}
},
Expand Down
1 change: 1 addition & 0 deletions charts/openfga/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ profiler:
log:
level: info
format: json
timestampFormat: Unix

checkQueryCache:
enabled: false
Expand Down

0 comments on commit d6347ca

Please sign in to comment.