Skip to content

Commit 03f0930

Browse files
committed
WIP: lint: ignore klogr deprecation
Signed-off-by: Mikko Ylinen <[email protected]>
1 parent df9609a commit 03f0930

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

cmd/fpga_admissionwebhook/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func main() {
5353
"Enabling this will ensure there is only one active controller manager.")
5454
flag.Parse()
5555

56+
//nolint: staticcheck
5657
ctrl.SetLogger(klogr.New())
5758

5859
tlsCfgFunc := func(cfg *tls.Config) {

cmd/operator/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ func main() {
108108
pm *patcher.Manager
109109
)
110110

111+
//nolint: staticcheck
111112
ctrl.SetLogger(klogr.NewWithOptions(klogr.WithFormat(klogr.FormatKlog)))
112113

113114
flag.StringVar(&metricsAddr, "metrics-bind-address", ":8080", "The address the metric endpoint binds to.")

cmd/sgx_admissionwebhook/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ func init() {
3737
}
3838

3939
func main() {
40+
//nolint: staticcheck
4041
ctrl.SetLogger(klogr.New())
4142

4243
tlsCfgFunc := func(cfg *tls.Config) {

pkg/fpgacontroller/fpgacontroller_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ var (
3737
)
3838

3939
func init() {
40+
//nolint: staticcheck
4041
ctrl.SetLogger(klogr.New())
4142

4243
_ = fpgav2.AddToScheme(scheme)

pkg/fpgacontroller/patcher/patchermanager_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import (
3232
)
3333

3434
func init() {
35+
//nolint: staticcheck
3536
ctrl.SetLogger(klogr.New())
3637
}
3738

test/envtest/suite_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ func TestAPIs(t *testing.T) {
7676
var _ = BeforeSuite(func() {
7777
By("bootstrapping test environment")
7878

79+
//nolint: staticcheck
7980
logf.SetLogger(klogr.NewWithOptions(klogr.WithFormat(klogr.FormatKlog)))
8081

8182
testEnv = &envtest.Environment{

0 commit comments

Comments
 (0)