Skip to content

Update OCS dependencies to latest version #337

Update OCS dependencies to latest version

Update OCS dependencies to latest version #337

Triggered via push October 3, 2024 11:30
Status Failure
Total duration 4m 4s
Artifacts

lint.yaml

on: push
Kube YAML
3s
Kube YAML
Matrix: golangci-lint
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Go 1.22 Lint: addons/agent_mirrorpeer_controller_test.go#L20
could not import sigs.k8s.io/controller-runtime/pkg/client/fake (-: # sigs.k8s.io/controller-runtime/pkg/client/fake
Go 1.22 Lint
cannot use c.tracker (variable of type versionedTracker) as "k8s.io/client-go/testing".ObjectTracker value in argument to dryPatch: versionedTracker does not implement "k8s.io/client-go/testing".ObjectTracker (wrong type for method Create)
Go 1.22 Lint
cannot use c.tracker (variable of type versionedTracker) as "k8s.io/client-go/testing".ObjectTracker value in argument to testing.ObjectReaction: versionedTracker does not implement "k8s.io/client-go/testing".ObjectTracker (wrong type for method Create)
Go 1.22 Lint: addons/green_secret_controller_test.go#L39
cannot use ocsv1.MirroringSpec{…} (value of type "github.com/red-hat-storage/ocs-operator/api/v4/v1".MirroringSpec) as *"github.com/red-hat-storage/ocs-operator/api/v4/v1".MirroringSpec value in struct literal (typecheck)
Go 1.22 Lint: addons/onboarding_token.go#L73
token declared and not used (typecheck)
Go 1.22 Lint: addons/agent_mirrorpeer_controller_test.go#L147
cannot use ocsv1.MirroringSpec{…} (value of type "github.com/red-hat-storage/ocs-operator/api/v4/v1".MirroringSpec) as *"github.com/red-hat-storage/ocs-operator/api/v4/v1".MirroringSpec value in struct literal (typecheck)
Go 1.22 Lint: addons/agent_mirrorpeer_controller_test.go#L222
cannot use ocsv1.MirroringSpec{…} (value of type "github.com/red-hat-storage/ocs-operator/api/v4/v1".MirroringSpec) as *"github.com/red-hat-storage/ocs-operator/api/v4/v1".MirroringSpec value in struct literal (typecheck)
Go 1.22 Lint: console/console_test.go#L17
could not import sigs.k8s.io/controller-runtime/pkg/client/fake (-: # sigs.k8s.io/controller-runtime/pkg/client/fake
Go 1.22 Lint
cannot use c.tracker (variable of type versionedTracker) as "k8s.io/client-go/testing".ObjectTracker value in argument to dryPatch: versionedTracker does not implement "k8s.io/client-go/testing".ObjectTracker (wrong type for method Create)
Go 1.22 Lint
cannot use c.tracker (variable of type versionedTracker) as "k8s.io/client-go/testing".ObjectTracker value in argument to testing.ObjectReaction: versionedTracker does not implement "k8s.io/client-go/testing".ObjectTracker (wrong type for method Create)
Kube YAML
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Go 1.22 Lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v3, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/