Skip to content

Commit

Permalink
Merge pull request #88 from matthewhembree/matthewhembree/switch-to-r…
Browse files Browse the repository at this point in the history
…fc3339-timestamps

feat: Switch to RFC3339 timestamps.
  • Loading branch information
adyanth authored Jun 21, 2023
2 parents c38e0cc + 25e8815 commit 378f89c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 378f89c

Please sign in to comment.