Skip to content

Commit

Permalink
Merge pull request #7073 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…7068-to-release-1.2

[release-1.2] 🐛Using cacheCtx on WaitForCacheSync error loading
  • Loading branch information
k8s-ci-robot authored Aug 17, 2022
2 parents 9948a86 + cb0e4f8 commit b8a0ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/remote/cluster_cache_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func (t *ClusterCacheTracker) newClusterAccessor(ctx context.Context, cluster cl
// Start the cache!!!
go cache.Start(cacheCtx) //nolint:errcheck
if !cache.WaitForCacheSync(cacheCtx) {
return nil, fmt.Errorf("failed waiting for cache for remote cluster %v to sync: %w", cluster, err)
return nil, fmt.Errorf("failed waiting for cache for remote cluster %v to sync: %w", cluster, cacheCtx.Err())
}

// Start cluster healthcheck!!!
Expand Down

0 comments on commit b8a0ae1

Please sign in to comment.