mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
rebase: changes as per new controller runtime import
changes as per new controller runtime import Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
6790633624
commit
7fd2e8935b
@ -82,7 +82,11 @@ func add(mgr manager.Manager, r reconcile.Reconciler) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Watch for changes to PersistentVolumes
|
// Watch for changes to PersistentVolumes
|
||||||
err = c.Watch(source.Kind(mgr.GetCache(), &corev1.PersistentVolume{}), &handler.EnqueueRequestForObject{})
|
err = c.Watch(source.Kind(
|
||||||
|
mgr.GetCache(),
|
||||||
|
&corev1.PersistentVolume{},
|
||||||
|
&handler.TypedEnqueueRequestForObject[*corev1.PersistentVolume]{}),
|
||||||
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to watch the changes: %w", err)
|
return fmt.Errorf("failed to watch the changes: %w", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user