Skip to content

Commit c9dec31

Browse files
authored
Merge pull request #8062 from sbueringer/pr-fix-panic-clustercache
🐛 ClusterCacheTracker: fix panic in error creation
2 parents 46c3438 + 077f8ef commit c9dec31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/remote/cluster_cache_tracker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ func (t *ClusterCacheTracker) Watch(ctx context.Context, input WatchInput) error
445445
// We have to lock the cluster, so that the watch is not created multiple times in parallel.
446446
ok := t.clusterLock.TryLock(input.Cluster)
447447
if !ok {
448-
return errors.Wrapf(ErrClusterLocked, "failed to add %s watch on cluster %s: failed to get lock for cluster", input.Kind, klog.KRef(input.Cluster.Namespace, input.Cluster.Name))
448+
return errors.Wrapf(ErrClusterLocked, "failed to add %T watch on cluster %s: failed to get lock for cluster", input.Kind, klog.KRef(input.Cluster.Namespace, input.Cluster.Name))
449449
}
450450
defer t.clusterLock.Unlock(input.Cluster)
451451

0 commit comments

Comments
 (0)