mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-21 17:07:16 +00:00
chore: use WatchFuncWithContext (#25520)
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
This commit is contained in:
parent
b7c7d02b0e
commit
7cdc0f952f
1 changed files with 1 additions and 1 deletions
2
gitops-engine/pkg/cache/cluster.go
vendored
2
gitops-engine/pkg/cache/cluster.go
vendored
|
|
@ -671,7 +671,7 @@ func (c *clusterCache) watchEvents(ctx context.Context, api kube.APIResourceInfo
|
|||
}
|
||||
|
||||
w, err := watchutil.NewRetryWatcherWithContext(ctx, resourceVersion, &cache.ListWatch{
|
||||
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
|
||||
WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) {
|
||||
res, err := resClient.Watch(ctx, options)
|
||||
if apierrors.IsNotFound(err) {
|
||||
c.stopWatching(api.GroupKind, ns)
|
||||
|
|
|
|||
Loading…
Reference in a new issue