diff --git a/cmd/manager/main.go b/cmd/manager/main.go index 4582cdb58..caaac14ae 100644 --- a/cmd/manager/main.go +++ b/cmd/manager/main.go @@ -25,6 +25,7 @@ import ( // to ensure that exec-entrypoint and run can make use of them. _ "k8s.io/client-go/plugin/pkg/client/auth" + "go.uber.org/zap/zapcore" "k8s.io/apimachinery/pkg/runtime" utilruntime "k8s.io/apimachinery/pkg/util/runtime" clientgoscheme "k8s.io/client-go/kubernetes/scheme" @@ -72,6 +73,7 @@ func main() { flag.IntVar(&maxConcurrentReconciles, "max-concurrent-reconciles", 100, "Maximum number of concurrent reconciles") opts := zap.Options{ Development: true, + TimeEncoder: zapcore.ISO8601TimeEncoder, } opts.BindFlags(flag.CommandLine) flag.Parse() diff --git a/go.mod b/go.mod index f18749b3c..d4fd3f447 100644 --- a/go.mod +++ b/go.mod @@ -13,6 +13,7 @@ require ( github.com/operator-framework/operator-sdk v1.22.2 github.com/robfig/cron/v3 v3.0.1 github.com/stretchr/testify v1.8.0 + go.uber.org/zap v1.19.1 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 k8s.io/api v0.24.4 @@ -207,7 +208,6 @@ require ( go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5 // indirect go.uber.org/atomic v1.7.0 // indirect go.uber.org/multierr v1.6.0 // indirect - go.uber.org/zap v1.19.1 // indirect golang.org/x/crypto v0.0.0-20220408190544-5352b0902921 // indirect golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect