File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ import (
8686 "sigs.k8s.io/controller-runtime/pkg/client"
8787 "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
8888 "sigs.k8s.io/controller-runtime/pkg/healthz"
89+ ctrllog "sigs.k8s.io/controller-runtime/pkg/log"
8990 ctrlmgr "sigs.k8s.io/controller-runtime/pkg/manager"
9091 ctrlmetrics "sigs.k8s.io/controller-runtime/pkg/metrics/server"
9192)
@@ -851,6 +852,9 @@ func main() {
851852 // Add APIServer FQDN to Log metadata
852853 logger .Log .SetAPIServer (os .Getenv ("KUBERNETES_SERVICE_HOST" ))
853854
855+ // set logger in ctrlruntime
856+ ctrllog .SetLogger (zapr .NewLogger (z ))
857+
854858 // Check the CNI statefile mount, and if the file is empty
855859 // stub an empty JSON object
856860 if err := cnipodprovider .WriteObjectToCNIStatefile (); err != nil { //nolint:govet //shadow okay
You can’t perform that action at this time.
0 commit comments