[WIP] Support custom metrics #4789
Annotations
9 errors and 2 warnings
lint:
pkg/kwok/cmd/root.go#L119
cyclomatic complexity 57 of func `runE` is high (> 50) (gocyclo)
|
lint:
pkg/kwok/server/metrics_resource_usage.go#L90
G601: Implicit memory aliasing in for loop. (gosec)
|
lint:
pkg/kwok/server/metrics_resource_usage.go#L187
G601: Implicit memory aliasing in for loop. (gosec)
|
lint:
pkg/kwok/server/metrics_resource_usage.go#L216
G601: Implicit memory aliasing in for loop. (gosec)
|
lint:
pkg/kwok/apiserver/custom_metrics_provider.go#L90
`Creater` is a misspelling of `Creature` (misspell)
|
lint:
pkg/kwok/apiserver/external_metrics_provider.go#L75
`Creater` is a misspelling of `Creature` (misspell)
|
lint:
pkg/kwok/apiserver/custom_metrics_provider.go#L121
`(*CustomMetricsProvider).valueFor` - `metricSelector` is unused (unparam)
|
lint:
pkg/kwok/apiserver/custom_metrics_provider.go#L134
`(*CustomMetricsProvider).metricFor` - `selector` is unused (unparam)
|
lint
issues found
|
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/kwok/kwok. Supported file pattern: go.sum
|
lint:
pkg/kwok/apiserver/apiserver.go#L17
package-comments: should have a package comment (revive)
|