storageClusterPeer: add logic for storageclusterpeer controller #5314
Annotations
6 errors
Run golangci/golangci-lint-action@v6:
main.go#L63
could not import github.com/red-hat-storage/ocs-operator/v4/controllers/storagecluster (-: # github.com/red-hat-storage/ocs-operator/v4/controllers/storagecluster
|
Run golangci/golangci-lint-action@v6:
controllers/storagecluster/storagecluster_controller.go#L249
cannot use builder.MatchEveryOwner (variable of type *builder.matchEveryOwner) as builder.WatchesOption value in argument to ctrl.NewControllerManagedBy(mgr).For(&ocsv1.StorageCluster{}, builder.WithPredicates(scPredicate)).Owns(&cephv1.CephCluster{}, builder.WithPredicates(cephClusterIgnoreTimeUpdatePredicate)).Owns(&cephv1.CephBlockPool{}).Owns(&cephv1.CephFilesystem{}).Owns(&cephv1.CephFilesystemSubVolumeGroup{}).Owns(&cephv1.CephNFS{}).Owns(&cephv1.CephObjectStore{}).Owns(&cephv1.CephObjectStoreUser{}).Owns(&cephv1.CephRBDMirror{}).Owns(&corev1.PersistentVolumeClaim{}, builder.WithPredicates(pvcPredicate)).Owns(&appsv1.Deployment{}, builder.WithPredicates(predicate.GenerationChangedPredicate{})).Owns(&corev1.Service{}, builder.WithPredicates(predicate.GenerationChangedPredicate{})).Owns(&corev1.ConfigMap{}, builder.MatchEveryOwner, builder.WithPredicates(predicate.GenerationChangedPredicate{})).Owns(&corev1.Secret{}, builder.WithPredicates(predicate.GenerationChangedPredicate{})).Owns(&routev1.Route{}).Owns(&templatev1.Template{}).Watches(&extv1.CustomResourceDefinition{}, enqueueStorageClusterRequest, builder.WithPredicates(util.NamePredicate(VirtualMachineCrdName), util.CrdCreateAndDeletePredicate(&r.Log, VirtualMachineCrdName, r.AvailableCrds[VirtualMachineCrdName])), builder.WithPredicates(util.NamePredicate(StorageClientCrdName), util.CrdCreateAndDeletePredicate(&r.Log, StorageClientCrdName, r.AvailableCrds[StorageClientCrdName])), builder.OnlyMetadata).Watches(&storagev1.StorageClass{}, enqueueStorageClusterRequest).Watches(&volumesnapshotv1.VolumeSnapshotClass{}, enqueueStorageClusterRequest).Watches(&ocsv1.StorageProfile{}, enqueueStorageClusterRequest).Watches(&ocsv1alpha1.StorageConsumer{}, enqueueStorageClusterRequest, builder.WithPredicates(storageConsumerStatusPredicate)).Watches: *builder.matchEveryOwner does not implement builder.WatchesOption (missing method ApplyToWatches)) (typecheck)
|
Run golangci/golangci-lint-action@v6:
controllers/ocsinitialization/ocsinitialization_controller.go#L14
could not import github.com/red-hat-storage/ocs-operator/v4/controllers/storagecluster (-: # github.com/red-hat-storage/ocs-operator/v4/controllers/storagecluster
|
Run golangci/golangci-lint-action@v6:
controllers/storagecluster/storagecluster_controller.go#L249
cannot use builder.MatchEveryOwner (variable of type *builder.matchEveryOwner) as builder.WatchesOption value in argument to ctrl.NewControllerManagedBy(mgr).For(&ocsv1.StorageCluster{}, builder.WithPredicates(scPredicate)).Owns(&cephv1.CephCluster{}, builder.WithPredicates(cephClusterIgnoreTimeUpdatePredicate)).Owns(&cephv1.CephBlockPool{}).Owns(&cephv1.CephFilesystem{}).Owns(&cephv1.CephFilesystemSubVolumeGroup{}).Owns(&cephv1.CephNFS{}).Owns(&cephv1.CephObjectStore{}).Owns(&cephv1.CephObjectStoreUser{}).Owns(&cephv1.CephRBDMirror{}).Owns(&corev1.PersistentVolumeClaim{}, builder.WithPredicates(pvcPredicate)).Owns(&appsv1.Deployment{}, builder.WithPredicates(predicate.GenerationChangedPredicate{})).Owns(&corev1.Service{}, builder.WithPredicates(predicate.GenerationChangedPredicate{})).Owns(&corev1.ConfigMap{}, builder.MatchEveryOwner, builder.WithPredicates(predicate.GenerationChangedPredicate{})).Owns(&corev1.Secret{}, builder.WithPredicates(predicate.GenerationChangedPredicate{})).Owns(&routev1.Route{}).Owns(&templatev1.Template{}).Watches(&extv1.CustomResourceDefinition{}, enqueueStorageClusterRequest, builder.WithPredicates(util.NamePredicate(VirtualMachineCrdName), util.CrdCreateAndDeletePredicate(&r.Log, VirtualMachineCrdName, r.AvailableCrds[VirtualMachineCrdName])), builder.WithPredicates(util.NamePredicate(StorageClientCrdName), util.CrdCreateAndDeletePredicate(&r.Log, StorageClientCrdName, r.AvailableCrds[StorageClientCrdName])), builder.OnlyMetadata).Watches(&storagev1.StorageClass{}, enqueueStorageClusterRequest).Watches(&volumesnapshotv1.VolumeSnapshotClass{}, enqueueStorageClusterRequest).Watches(&ocsv1.StorageProfile{}, enqueueStorageClusterRequest).Watches(&ocsv1alpha1.StorageConsumer{}, enqueueStorageClusterRequest, builder.WithPredicates(storageConsumerStatusPredicate)).Watches: *builder.matchEveryOwner does not implement builder.WatchesOption (missing method ApplyToWatches)) (typecheck)
|
Run golangci/golangci-lint-action@v6:
controllers/storagecluster/storagecluster_controller.go#L249
cannot use builder.MatchEveryOwner (variable of type *builder.matchEveryOwner) as builder.WatchesOption value in argument to ctrl.NewControllerManagedBy(mgr).For(&ocsv1.StorageCluster{}, builder.WithPredicates(scPredicate)).Owns(&cephv1.CephCluster{}, builder.WithPredicates(cephClusterIgnoreTimeUpdatePredicate)).Owns(&cephv1.CephBlockPool{}).Owns(&cephv1.CephFilesystem{}).Owns(&cephv1.CephFilesystemSubVolumeGroup{}).Owns(&cephv1.CephNFS{}).Owns(&cephv1.CephObjectStore{}).Owns(&cephv1.CephObjectStoreUser{}).Owns(&cephv1.CephRBDMirror{}).Owns(&corev1.PersistentVolumeClaim{}, builder.WithPredicates(pvcPredicate)).Owns(&appsv1.Deployment{}, builder.WithPredicates(predicate.GenerationChangedPredicate{})).Owns(&corev1.Service{}, builder.WithPredicates(predicate.GenerationChangedPredicate{})).Owns(&corev1.ConfigMap{}, builder.MatchEveryOwner, builder.WithPredicates(predicate.GenerationChangedPredicate{})).Owns(&corev1.Secret{}, builder.WithPredicates(predicate.GenerationChangedPredicate{})).Owns(&routev1.Route{}).Owns(&templatev1.Template{}).Watches(&extv1.CustomResourceDefinition{}, enqueueStorageClusterRequest, builder.WithPredicates(util.NamePredicate(VirtualMachineCrdName), util.CrdCreateAndDeletePredicate(&r.Log, VirtualMachineCrdName, r.AvailableCrds[VirtualMachineCrdName])), builder.WithPredicates(util.NamePredicate(StorageClientCrdName), util.CrdCreateAndDeletePredicate(&r.Log, StorageClientCrdName, r.AvailableCrds[StorageClientCrdName])), builder.OnlyMetadata).Watches(&storagev1.StorageClass{}, enqueueStorageClusterRequest).Watches(&volumesnapshotv1.VolumeSnapshotClass{}, enqueueStorageClusterRequest).Watches(&ocsv1.StorageProfile{}, enqueueStorageClusterRequest).Watches(&ocsv1alpha1.StorageConsumer{}, enqueueStorageClusterRequest, builder.WithPredicates(storageConsumerStatusPredicate)).Watches: *builder.matchEveryOwner does not implement builder.WatchesOption (missing method ApplyToWatches) (typecheck)
|
Run golangci/golangci-lint-action@v6
issues found
|
Loading