Skip to content

[WIP] Support custom metrics #4789

[WIP] Support custom metrics

[WIP] Support custom metrics #4789

Triggered via pull request September 1, 2023 06:00
Status Failure
Total duration 3m 54s
Artifacts

golangci-lint.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

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)