Merge pull request #123660 from xigang/cacher/watch

cleanup: if triggerValue has a value fast break
This commit is contained in:
Kubernetes Prow Robot 2024-03-04 01:17:02 -08:00 committed by GitHub
commit a4eaf6e120
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}
}
}