diff --git a/.custom-gcl.yaml b/.custom-gcl.yaml index 5c6132b05..de61a5d66 100644 --- a/.custom-gcl.yaml +++ b/.custom-gcl.yaml @@ -1,6 +1,6 @@ -version: v2.5.0 +version: v2.6.0 name: golangci-kube-api-linter destination: ./tmp/bin/ plugins: - module: 'sigs.k8s.io/kube-api-linter' - version: v0.0.0-20250902135116-ef33eac3b92b + version: v0.0.0-20251112164541-d94382a24f06 diff --git a/.golangci.yml b/.golangci.yml index 9ba37e661..6a6de721d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -12,6 +12,7 @@ linters: - godoclint - iface - iotamixing + - modernize - nilnesserr - recvcheck - revive @@ -31,6 +32,9 @@ linters: exclude-functions: # Any error in HTTP handlers is handled by the server itself. - (net/http.ResponseWriter).Write + modernize: + disable: + - omitzero exclusions: generated: strict presets: diff --git a/pkg/operator/operator.go b/pkg/operator/operator.go index e41758d59..e21b067e4 100644 --- a/pkg/operator/operator.go +++ b/pkg/operator/operator.go @@ -326,7 +326,7 @@ func NewFakeRecorder(bufferSize int, related runtime.Object) *EventRecorder { } // Eventf records a Kubernetes event. -func (er *EventRecorder) Eventf(regarding runtime.Object, eventtype, reason, action, note string, args ...interface{}) { +func (er *EventRecorder) Eventf(regarding runtime.Object, eventtype, reason, action, note string, args ...any) { er.er.Eventf( regarding, er.related,