chore: depr. pointer pkg replacement for the reflactor

Kubernetes-commit: 9345552274d2999c59a609488d0673edbb3a246e
This commit is contained in:
PatrickLaabs
2025-07-03 11:27:00 +02:00
committed by Kubernetes Publisher
parent 2cfeed63b2
commit 735f105e54
2 changed files with 36 additions and 36 deletions

View File

@@ -42,7 +42,7 @@ import (
"k8s.io/client-go/tools/pager"
"k8s.io/klog/v2"
"k8s.io/utils/clock"
"k8s.io/utils/pointer"
"k8s.io/utils/ptr"
"k8s.io/utils/trace"
)
@@ -749,7 +749,7 @@ func (r *Reflector) watchList(ctx context.Context) (watch.Interface, error) {
options := metav1.ListOptions{
ResourceVersion: lastKnownRV,
AllowWatchBookmarks: true,
SendInitialEvents: pointer.Bool(true),
SendInitialEvents: ptr.To(true),
ResourceVersionMatch: metav1.ResourceVersionMatchNotOlderThan,
TimeoutSeconds: &timeoutSeconds,
}