diff --git a/main.go b/main.go index 16a8bdc..ad59269 100644 --- a/main.go +++ b/main.go @@ -18,7 +18,9 @@ package main import ( "flag" + "go.uber.org/zap/zapcore" "os" + "time" // Import all Kubernetes client auth plugins (e.g. Azure, GCP, OIDC, etc.) // to ensure that exec-entrypoint and run can make use of them. @@ -63,6 +65,7 @@ func main() { "Enabling this will ensure there is only one active controller manager.") opts := zap.Options{ Development: true, + TimeEncoder: zapcore.TimeEncoderOfLayout(time.RFC3339), } opts.BindFlags(flag.CommandLine) flag.Parse()