Skip to content

Initialize Mirroring spec to avoid nil pointer exception #1284

Initialize Mirroring spec to avoid nil pointer exception

Initialize Mirroring spec to avoid nil pointer exception #1284

Triggered via pull request November 26, 2024 08:58
Status Failure
Total duration 29s
Artifacts

lint.yaml

on: pull_request
Kube YAML
4s
Kube YAML
Matrix: golangci-lint
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Go 1.22 Lint: cmd/addon_agent.go#L4
could not import github.com/red-hat-storage/odf-multicluster-orchestrator/addons (-: # github.com/red-hat-storage/odf-multicluster-orchestrator/addons
Go 1.22 Lint: addons/agent_mirrorpeer_controller.go#L376
sc.spec undefined (type "github.com/red-hat-storage/ocs-operator/api/v4/v1".StorageCluster has no field or method spec, but does have Spec)
Go 1.22 Lint: addons/agent_mirrorpeer_controller.go#L377
sc.spec undefined (type "github.com/red-hat-storage/ocs-operator/api/v4/v1".StorageCluster has no field or method spec, but does have Spec)
Go 1.22 Lint: addons/rook_secret_handler.go#L200
sc.spec undefined (type *"github.com/red-hat-storage/ocs-operator/api/v4/v1".StorageCluster has no field or method spec, but does have Spec)
Go 1.22 Lint: addons/rook_secret_handler.go#L201
sc.spec undefined (type *"github.com/red-hat-storage/ocs-operator/api/v4/v1".StorageCluster has no field or method spec, but does have Spec)) (typecheck)
Go 1.22 Lint: addons/agent_mirrorpeer_controller.go#L1
: # github.com/red-hat-storage/odf-multicluster-orchestrator/addons [github.com/red-hat-storage/odf-multicluster-orchestrator/addons.test]
Go 1.22 Lint: addons/agent_mirrorpeer_controller.go#L376
sc.spec undefined (type "github.com/red-hat-storage/ocs-operator/api/v4/v1".StorageCluster has no field or method spec, but does have Spec)
Go 1.22 Lint: addons/agent_mirrorpeer_controller.go#L377
sc.spec undefined (type "github.com/red-hat-storage/ocs-operator/api/v4/v1".StorageCluster has no field or method spec, but does have Spec)
Go 1.22 Lint: addons/rook_secret_handler.go#L200
sc.spec undefined (type *"github.com/red-hat-storage/ocs-operator/api/v4/v1".StorageCluster has no field or method spec, but does have Spec)
Go 1.22 Lint: addons/rook_secret_handler.go#L201
sc.spec undefined (type *"github.com/red-hat-storage/ocs-operator/api/v4/v1".StorageCluster has no field or method spec, but does have Spec) (typecheck)