storageClusterPeer: add logic for storageclusterpeer controller #5314
Annotations
2 errors and 1 warning
Run go test:
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)
|
Run go test
Process completed with exit code 2.
|
Run actions/setup-go@v5
Restore cache failed: Dependencies file is not found in /home/runner/work/ocs-operator/ocs-operator. Supported file pattern: go.sum
|
Loading