giantswarm / roadmap

Giant Swarm Product Roadmap
https://github.com/orgs/giantswarm/projects/273
Apache License 2.0
3 stars 0 forks source link

Disable logger development mode to avoid panicking #3660

Open AndiDog opened 3 weeks ago

AndiDog commented 3 weeks ago

zap is used as default logger for kubebuilder-generated operators. By default, its main.go uses Development: true logging mode, meaning it will panic on logic errors such as odd number of arguments in structured logging calls (example: logger.Info("the message", "key without value argument")).

To rectify:

Example PR that does all this

From a GitHub code search in the original issue of Phoenix, we found that these repos of your team are affected:

ssyno commented 3 days ago

teleport-agent-operator can be archived Issue to be resolved after merging the following PRs: dex-operator organization-operator teleport-operator