Skip to content

Commit 92f2c2c

Browse files
committed
Update golangci-lint to v2.6.2
1 parent b2096f7 commit 92f2c2c

File tree

15 files changed

+13
-15
lines changed

15 files changed

+13
-15
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ else
123123
LOGCOUNTER=*dont-include-log-counter
124124
endif
125125

126-
GOLANGCI_LINT_VERSION := v2.2.0
126+
GOLANGCI_LINT_VERSION := v2.6.2
127127
GOLANGCI_LINT := ./.bin/golangci-lint
128128

129129
lint: $(GOLANGCI_LINT)

cmd/nodeproblemdetector/exporterplugins/stackdriver_exporter_plugin.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build !disable_stackdriver_exporter
2-
// +build !disable_stackdriver_exporter
32

43
/*
54
Copyright 2019 The Kubernetes Authors All rights reserved.

cmd/nodeproblemdetector/node_problem_detector_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build !disable_system_log_monitor
2-
// +build !disable_system_log_monitor
32

43
/*
54
Copyright 2021 The Kubernetes Authors All rights reserved.

cmd/nodeproblemdetector/node_problem_detector_windows_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build !disable_system_log_monitor
2-
// +build !disable_system_log_monitor
32

43
/*
54
Copyright 2021 The Kubernetes Authors All rights reserved.

cmd/nodeproblemdetector/problemdaemonplugins/custom_plugin_monitor_plugin.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build !disable_custom_plugin_monitor
2-
// +build !disable_custom_plugin_monitor
32

43
/*
54
Copyright 2019 The Kubernetes Authors All rights reserved.

cmd/nodeproblemdetector/problemdaemonplugins/system_log_monitor_plugin.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build !disable_system_log_monitor
2-
// +build !disable_system_log_monitor
32

43
/*
54
Copyright 2019 The Kubernetes Authors All rights reserved.

cmd/nodeproblemdetector/problemdaemonplugins/system_stats_monitor_plugin.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build !disable_system_stats_monitor
2-
// +build !disable_system_stats_monitor
32

43
/*
54
Copyright 2019 The Kubernetes Authors All rights reserved.

pkg/custompluginmonitor/plugin/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func (p *Plugin) run(rule cpmtypes.CustomRule) (exitStatus cpmtypes.Status, outp
154154
}
155155
defer cancel()
156156

157-
cmd := util.Exec(rule.Path, rule.Args...)
157+
cmd := util.Exec(ctx, rule.Path, rule.Args...)
158158

159159
stdoutPipe, err := cmd.StdoutPipe()
160160
if err != nil {

pkg/exporters/stackdriver/stackdriver_exporter_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build !disable_stackdriver_exporter
2-
// +build !disable_stackdriver_exporter
32

43
/*
54
Copyright 2019 The Kubernetes Authors All rights reserved.

pkg/healthchecker/health_checker_darwin.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"time"
2222

2323
"k8s.io/klog/v2"
24+
2425
"k8s.io/node-problem-detector/cmd/healthchecker/options"
2526
)
2627

0 commit comments

Comments
 (0)