Introduce cache for lookups of desired resource state, to reduce the amount of allocations in the controller (#4568)

This commit is contained in:
Nikola Jokic
2026-09-07 13:49:28 +02:00
committed by GitHub
parent 87592be6d3
commit 54147cfa5e
13 changed files with 860 additions and 26 deletions
+2
View File
@@ -218,6 +218,7 @@ func main() {
}
actionsgithubcom.SetListenerEntrypoint(os.Getenv("LISTENER_ENTRYPOINT"))
resourceCache := actionsgithubcom.NewResourceCache()
var webhookServer webhook.Server
if port != 0 {
@@ -303,6 +304,7 @@ func main() {
ExcludeLabelPropagationPrefixes: excludeLabelPropagationPrefixes,
SecretResolver: secretResolver,
Scheme: mgr.GetScheme(),
ResourceCache: &resourceCache,
}
log.Info("Resource builder initializing")