Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support structured logging config for faas-netes (Standard/Enterprise) #1184

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions chart/openfaas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,8 @@ yaml) |
| `faasnetes.resources` | Resource limits and requests for faas-netes container | See [values.yaml](./values.yaml) |
| `faasnetes.writeTimeout` | Write timeout for the faas-netes API | `""` (defaults to gateway.writeTimeout) |
| `faasnetesPro.image` | Container image used for faas-netes when `openfaasPro=true` | See [values.yaml](./values.yaml) |
| `faasnetesPro.logs.format` | Set the log format, supports `console` or `json` | `console` |
| `faasnetesPro.logs.debug` | Print debug logs | `false` |
| `operator.create` | Use the OpenFaaS operator CRD controller, default uses faas-netes as the Kubernetes controller | `false` |
| `operator.image` | Container image used for the openfaas-operator | See [values.yaml](./values.yaml) |
| `operator.resources` | Resource limits and requests for openfaas-operator containers | See [values.yaml](./values.yaml) |
Expand Down
6 changes: 6 additions & 0 deletions chart/openfaas/templates/gateway-dep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,12 @@ spec:
- name: auditing_http_verbs
value: "{{ .Values.eventSubscription.auditing.httpVerbs }}"
{{- end}}
{{- if .Values.faasnetesPro.logs}}
- name: "debug"
value: "{{ .Values.faasnetesPro.logs.debug }}"
- name: "log_encoding"
value: "{{ .Values.faasnetesPro.logs.format }}"
{{- end }}
volumeMounts:
{{- if .Values.iam.enabled }}
- name: issuer-key
Expand Down
3 changes: 3 additions & 0 deletions chart/openfaas/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ operator:

faasnetesPro:
image: ghcr.io/openfaasltd/faas-netes:0.5.14
logs:
debug: false
format: "console"

# For the Community Edition
faasnetes:
Expand Down
Loading