File tree Expand file tree Collapse file tree 3 files changed +14
-11
lines changed
cmd/nginx-loadbalancer-kubernetes Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ linters:
26
26
- misspell
27
27
- nakedret
28
28
- prealloc
29
- - exportloopref
30
29
- stylecheck
31
30
- unconvert
32
31
- unparam
@@ -38,20 +37,17 @@ linters:
38
37
run :
39
38
# 10 minute timeout for analysis
40
39
timeout : 10m
41
- skip-dirs-use-default : true
42
- skip-dirs :
43
- - .go/pkg/mod
44
- - pkg/spec/api # Generated code
45
- - vendor
46
- - vendor-fork
47
40
# Specific linter settings
48
41
linters-settings :
49
42
gocyclo :
50
43
# Minimal code complexity to report
51
44
min-complexity : 16
52
45
govet :
53
- # Report shadowed variables
54
- check-shadowing : true
46
+ disable-all : true
47
+ enable :
48
+ # Report shadowed variables
49
+ - shadow
50
+
55
51
misspell :
56
52
# Correct spellings using locale preferences for US
57
53
locale : US
@@ -63,8 +59,8 @@ linters-settings:
63
59
# If this list is empty, all structs are tested.
64
60
# Default: []
65
61
include :
66
- - ' gitlab.com/f5/nginx/nginxazurelb/azure-resource-provider/pkg/token.TokenID'
67
- - ' gitlab.com/f5/nginx/nginxazurelb/azure-resource-provider/internal/dpo/agent/certificates.CertGetRequest'
62
+ - " gitlab.com/f5/nginx/nginxazurelb/azure-resource-provider/pkg/token.TokenID"
63
+ - " gitlab.com/f5/nginx/nginxazurelb/azure-resource-provider/internal/dpo/agent/certificates.CertGetRequest"
68
64
69
65
issues :
70
66
# Exclude configuration
Original file line number Diff line number Diff line change @@ -133,9 +133,13 @@ func buildKubernetesClient() (*kubernetes.Clientset, error) {
133
133
return client , nil
134
134
}
135
135
136
+ // TODO: NLB-6294 change to use new typed workqueues
137
+ //
138
+ //nolint:staticcheck //ignore deprecation warnings
136
139
func buildWorkQueue (settings configuration.WorkQueueSettings ) workqueue.RateLimitingInterface {
137
140
slog .Debug ("Watcher::buildSynchronizerWorkQueue" )
138
141
142
+ //nolint:staticcheck //ignore deprecation warnings
139
143
rateLimiter := workqueue .NewItemExponentialFailureRateLimiter (settings .RateLimiterBase , settings .RateLimiterMax )
140
144
return workqueue .NewNamedRateLimitingQueue (rateLimiter , settings .Name )
141
145
}
Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ type ServiceKey struct {
50
50
// a Border Client as specified in the Service annotation for the Upstream.
51
51
// See application/border_client.go and application/application_constants.go for details.
52
52
type Synchronizer struct {
53
+ // TODO: NLB-6294 change to use new typed workqueues
54
+ //nolint:staticcheck //ignore deprecation warnings
53
55
eventQueue workqueue.RateLimitingInterface
54
56
settings configuration.Settings
55
57
translator Translator
@@ -60,6 +62,7 @@ type Synchronizer struct {
60
62
// NewSynchronizer creates a new Synchronizer.
61
63
func NewSynchronizer (
62
64
settings configuration.Settings ,
65
+ //nolint:staticcheck //ignore deprecation warnings
63
66
eventQueue workqueue.RateLimitingInterface ,
64
67
translator Translator ,
65
68
serviceLister corelisters.ServiceLister ,
You can’t perform that action at this time.
0 commit comments