openfaas / faas-netes

Serverless Functions For Kubernetes
https://www.openfaas.com
Other
2.13k stars 471 forks source link

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

Closed welteki closed 9 months ago

welteki commented 10 months ago

Description

Support configuring the log level and format for the faas-netes controller (Standard/Enterprise)

faasnetesPro:
  logs:
    debug: false
    format: "console"

Why is this needed?

Logs for OpenFaaS IAM where moved to the debug level. This change is required to support setting the log level when running OpenFaaS IAM with the faas-netes controller mode.

Who is this for?

What company is this for? Are you listed in the ADOPTERS.md file?

How Has This Been Tested?

Verified the log level and format are set correctly when the chart values are updated:

kubectl logs -n openfaas deploy/gateway -c faas-netes

Types of changes

Checklist: