From 7fd2e8935b9648de2ec6a67c1a9d0596ceb14830 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Wed, 15 May 2024 09:06:09 +0200 Subject: [PATCH] rebase: changes as per new controller runtime import changes as per new controller runtime import Signed-off-by: Madhu Rajanna --- internal/controller/persistentvolume/persistentvolume.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/controller/persistentvolume/persistentvolume.go b/internal/controller/persistentvolume/persistentvolume.go index d83fb0a4f..433bf616b 100644 --- a/internal/controller/persistentvolume/persistentvolume.go +++ b/internal/controller/persistentvolume/persistentvolume.go @@ -82,7 +82,11 @@ func add(mgr manager.Manager, r reconcile.Reconciler) error { } // 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 { return fmt.Errorf("failed to watch the changes: %w", err) }