hashicorp / vault-secrets-operator

The Vault Secrets Operator (VSO) allows Pods to consume Vault secrets natively from Kubernetes Secrets.
https://hashicorp.com
Other
462 stars 99 forks source link

Disable development logger mode by default #751

Closed benashz closed 4 months ago

benashz commented 4 months ago

Disables the "development" zap log options by default. Now all log lines will be structured e.g:

{"level":"info","ts":"2024-05-14T20:53:26Z","logger":"controller-runtime.metrics","msg":"Shutting down metrics server with timeout of 1 minute"}
{"level":"info","ts":"2024-05-14T20:53:26Z","msg":"shutting down server","name":"health probe","addr":"[::]:8081"}
{"level":"info","ts":"2024-05-14T20:53:26Z","msg":"Wait completed, proceeding to shutdown the manager"}

To enable the old logging behavior VSO should be started with the environment variable VSO_LOGGER_DEVELOPMENT_MODE set to a non-empty value.