Skip to content

Commit

Permalink
Merge pull request kubernetes#123660 from xigang/cacher/watch
Browse files Browse the repository at this point in the history
cleanup: if triggerValue has a value fast break
  • Loading branch information
k8s-ci-robot committed Mar 4, 2024
2 parents 9d39ce0 + d72448a commit a4eaf6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ func (c *Cacher) Watch(ctx context.Context, key string, opts storage.ListOptions
if field == c.indexedTrigger.indexName {
if value, ok := pred.Field.RequiresExactMatch(field); ok {
triggerValue, triggerSupported = value, true
break
}
}
}
Expand Down

0 comments on commit a4eaf6e

Please sign in to comment.