Skip to content

Refactor internals. Make the operator more lib-oriented #890

Refactor internals. Make the operator more lib-oriented

Refactor internals. Make the operator more lib-oriented #890

Triggered via pull request October 11, 2023 20:52
Status Failure
Total duration 3m 5s
Artifacts

lint.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
Run linter: pkg/hook/config/config_v1.go#L20
could not import github.com/flant/shell-operator/pkg/webhook/validating/validation (-: # github.com/flant/shell-operator/pkg/webhook/validating/validation
Run linter: pkg/webhook/validating/validation/validation.go#L69
not enough arguments in call to metav1validation.ValidateLabelSelector
Run linter: pkg/webhook/validating/validation/validation.go#L73
not enough arguments in call to metav1validation.ValidateLabelSelector
Run linter: pkg/hook/hook_manager_test.go#L24
cannot use nil as client.Client value in argument to admission.NewWebhookManager (typecheck)
Run linter: pkg/kube_events_manager/monitor_test.go#L39
cannot use fc.Client (variable of type *client.Client) as client.Client value in argument to NewMonitor (typecheck)
Run linter: pkg/shell-operator/bootstrap.go#L89
cannot use initDefaultMainKubeClient(op.MetricStorage) (value of type *client.Client) as client.Client value in assignment (typecheck)
Run linter: pkg/shell-operator/bootstrap.go#L162
cannot use op.KubeClient (variable of type client.Client) as *client.Client value in argument to kube_events_manager.NewKubeEventsManager (typecheck)
Run linter: pkg/webhook/admission/manager_test.go#L10
cannot use nil as client.Client value in argument to NewWebhookManager (typecheck)
Run linter: pkg/webhook/validating/validation/validation.go#L69
not enough arguments in call to metav1validation.ValidateLabelSelector
Run linter: pkg/webhook/validating/validation/validation.go#L73
not enough arguments in call to metav1validation.ValidateLabelSelector
Run linter
Restore cache failed: Dependencies file is not found in /home/runner/work/shell-operator/shell-operator. Supported file pattern: go.sum