Initialize Mirroring spec to avoid nil pointer exception #1284
lint.yaml
on: pull_request
Kube YAML
4s
Matrix: golangci-lint
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)
|