mirror of
https://github.com/actions-runner-controller/actions-runner-controller.git
synced 2026-09-30 04:31:24 +02:00
Introduce cache for lookups of desired resource state, to reduce the amount of allocations in the controller (#4568)
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user