File tree 2 files changed +7
-1
lines changed 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ import (
22
22
_ "k8s.io/client-go/plugin/pkg/client/auth"
23
23
"k8s.io/client-go/rest"
24
24
"k8s.io/client-go/tools/clientcmd"
25
+ "sigs.k8s.io/controller-runtime/pkg/log"
26
+
27
+ "github.com/go-logr/zapr"
25
28
26
29
"github.com/webdevopos/azure-k8s-autopilot/config"
27
30
"github.com/webdevopos/azure-k8s-autopilot/k8s"
@@ -160,6 +163,8 @@ func (r *AzureK8sAutopilot) initK8s() {
160
163
if err != nil {
161
164
panic (err .Error ())
162
165
}
166
+
167
+ log .SetLogger (zapr .NewLogger (r .Logger .Desugar ()))
163
168
}
164
169
165
170
func (r * AzureK8sAutopilot ) initMetricsGeneral () {
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ require (
7
7
github.com/KimMachineGun/automemlimit v0.6.1
8
8
github.com/containrrr/shoutrrr v0.8.0
9
9
github.com/dustin/go-humanize v1.0.1
10
+ github.com/go-logr/zapr v1.3.0
10
11
github.com/jessevdk/go-flags v1.6.1
11
12
github.com/jinzhu/copier v0.4.0
12
13
github.com/operator-framework/operator-lib v0.15.0
@@ -20,6 +21,7 @@ require (
20
21
k8s.io/api v0.31.1
21
22
k8s.io/apimachinery v0.31.1
22
23
k8s.io/client-go v0.31.1
24
+ sigs.k8s.io/controller-runtime v0.19.0
23
25
)
24
26
25
27
require (
@@ -89,7 +91,6 @@ require (
89
91
k8s.io/klog/v2 v2.130.1 // indirect
90
92
k8s.io/kube-openapi v0.0.0-20240903163716-9e1beecbcb38 // indirect
91
93
k8s.io/utils v0.0.0-20240902221715-702e33fdd3c3 // indirect
92
- sigs.k8s.io/controller-runtime v0.19.0 // indirect
93
94
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
94
95
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
95
96
sigs.k8s.io/yaml v1.4.0 // indirect
You can’t perform that action at this time.
0 commit comments