Provisioning: concurrent deletes in finalizers and 404 handling (#113155)
* fix: concurrent deletes in finalizers and 404 handling * chore: feedback review * fix: broken tests
This commit is contained in:
@@ -90,6 +90,7 @@ func RunRepoController(deps server.OperatorDependencies) error {
|
||||
statusPatcher,
|
||||
deps.Registerer,
|
||||
tracer,
|
||||
controllerCfg.parallelOperations,
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to create repository controller: %w", err)
|
||||
@@ -107,6 +108,7 @@ func RunRepoController(deps server.OperatorDependencies) error {
|
||||
type repoControllerConfig struct {
|
||||
provisioningControllerConfig
|
||||
workerCount int
|
||||
parallelOperations int
|
||||
allowedTargets []string
|
||||
allowImageRendering bool
|
||||
minSyncInterval time.Duration
|
||||
@@ -128,6 +130,7 @@ func getRepoControllerConfig(cfg *setting.Cfg, registry prometheus.Registerer) (
|
||||
provisioningControllerConfig: *controllerCfg,
|
||||
allowedTargets: allowedTargets,
|
||||
workerCount: cfg.SectionWithEnvOverrides("operator").Key("worker_count").MustInt(1),
|
||||
parallelOperations: cfg.SectionWithEnvOverrides("operator").Key("parallel_operations").MustInt(10),
|
||||
allowImageRendering: cfg.SectionWithEnvOverrides("provisioning").Key("allow_image_rendering").MustBool(false),
|
||||
minSyncInterval: cfg.SectionWithEnvOverrides("provisioning").Key("min_sync_interval").MustDuration(1 * time.Minute),
|
||||
}, nil
|
||||
|
||||
Reference in New Issue
Block a user