Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit d049576

Browse files
committed
Update klog dependency to v2
This switches klog usage over to klog v2.5.0 to match the current version being used in k/k. This should also address some issues we're seeing that have since been fixed in klog between the quite old v1.0.0 and v2.5.0. Signed-off-by: Sean McGinnis <[email protected]>
1 parent 76d31d5 commit d049576

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

controllers/suite_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import (
2424
. "github.com/onsi/gomega"
2525
"k8s.io/client-go/kubernetes/scheme"
2626
"k8s.io/client-go/rest"
27-
"k8s.io/klog"
28-
"k8s.io/klog/klogr"
27+
"k8s.io/klog/v2"
28+
"k8s.io/klog/v2/klogr"
2929
"sigs.k8s.io/controller-runtime/pkg/client"
3030
"sigs.k8s.io/controller-runtime/pkg/envtest"
3131
"sigs.k8s.io/controller-runtime/pkg/envtest/printer"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
k8s.io/api v0.17.12
1313
k8s.io/apimachinery v0.17.12
1414
k8s.io/client-go v0.17.12
15-
k8s.io/klog v1.0.0
15+
k8s.io/klog/v2 v2.0.0
1616
k8s.io/utils v0.0.0-20201015054608-420da100c033
1717
sigs.k8s.io/cluster-api v0.3.12
1818
sigs.k8s.io/controller-runtime v0.5.14

pkg/cloud/packet/scope/cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424

2525
infrav1 "sigs.k8s.io/cluster-api-provider-packet/api/v1alpha3"
2626

27-
"k8s.io/klog/klogr"
27+
"k8s.io/klog/v2/klogr"
2828

2929
clusterv1 "sigs.k8s.io/cluster-api/api/v1alpha3"
3030
"sigs.k8s.io/cluster-api/util/patch"

pkg/cloud/packet/scope/machine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727

2828
corev1 "k8s.io/api/core/v1"
2929
"k8s.io/apimachinery/pkg/types"
30-
"k8s.io/klog/klogr"
30+
"k8s.io/klog/v2/klogr"
3131
"k8s.io/utils/pointer"
3232

3333
clusterv1 "sigs.k8s.io/cluster-api/api/v1alpha3"

0 commit comments

Comments
 (0)