Skip to content

Commit 6e010f8

Browse files
authored
Klogv2 (#90)
* add support for customized disk offering * Upgrade klog to v2 * Revert "add support for customized disk offering" This reverts commit 3e15d86. Co-authored-by: Yufei Wang <[email protected]>
1 parent 0d2c5db commit 6e010f8

File tree

4 files changed

+73
-32
lines changed

4 files changed

+73
-32
lines changed

controllers/controllers_suite_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import (
3232
"time"
3333

3434
"github.com/apache/cloudstack-go/v2/cloudstack"
35+
"github.com/go-logr/logr"
3536
"github.com/golang/mock/gomock"
3637
. "github.com/onsi/ginkgo/v2"
3738
. "github.com/onsi/gomega"
@@ -171,7 +172,7 @@ var _ = BeforeSuite(func() {
171172
K8sClient: k8sManager.GetClient(),
172173
Scheme: k8sManager.GetScheme(),
173174
CSClient: CS,
174-
BaseLogger: logf.NullLogger{}}
175+
BaseLogger: logr.New(logf.NullLogSink{})}
175176
ClusterReconciler = &csReconcilers.CloudStackClusterReconciler{ReconcilerBase: base}
176177
Ω(ClusterReconciler.SetupWithManager(k8sManager)).Should(Succeed())
177178

go.mod

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ go 1.16
44

55
require (
66
github.com/apache/cloudstack-go/v2 v2.13.0
7-
github.com/go-logr/logr v0.4.0
7+
github.com/go-logr/logr v1.2.3
88
github.com/golang/mock v1.6.0
99
github.com/hashicorp/go-multierror v1.1.1
1010
github.com/onsi/ginkgo/v2 v2.1.4
1111
github.com/onsi/gomega v1.19.0
1212
github.com/pkg/errors v0.9.1
1313
github.com/spf13/pflag v1.0.5
1414
gopkg.in/ini.v1 v1.63.2
15-
k8s.io/api v0.22.2
16-
k8s.io/apimachinery v0.22.2
17-
k8s.io/client-go v0.22.2
18-
k8s.io/klog v1.0.0
15+
k8s.io/api v0.23.0
16+
k8s.io/apimachinery v0.23.0
17+
k8s.io/client-go v0.23.0
18+
k8s.io/klog/v2 v2.30.0
1919
k8s.io/utils v0.0.0-20210930125809-cb0fa318a74b
2020
sigs.k8s.io/cluster-api v1.0.0
21-
sigs.k8s.io/controller-runtime v0.10.2
21+
sigs.k8s.io/controller-runtime v0.11.1
2222
)
2323

2424
replace github.com/dgrijalva/jwt-go => github.com/golang-jwt/jwt/v4 v4.0.0 // Indirect upgrade to address https://github.com/advisories/GHSA-w73w-5m7g-f7qc

0 commit comments

Comments
 (0)