Skip to content

Make Stage controller requeue delay configurable #4969

@omerzifman

Description

@omerzifman

Checklist

  • I've searched the issue queue to verify this is not a duplicate feature request.
  • I've pasted the output of kargo version, if applicable.
  • I've pasted logs, if applicable.

Proposed Feature

Make the reconcile requeue delay configurable for these controllers:

  • cluster_config
  • stage
  • projects
  • project_config

Currently the controllers uses a hard-coded five-minute delay. for example in internal/controller/stages/regular_stages.go at lines 383–385:

// Otherwise, requeue after a delay.
// TODO: Make the requeue delay configurable.
return ctrl.Result{RequeueAfter: 5 * time.Minute}, nil

Expose a single config knob per controller (env var and Helm value) with a default of 5m.

Motivation

Operators cannot tune reconciliation frequency without rebuilding or patching.
Configurable intervals allow faster feedback for time-sensitive workloads and lower resource usage for quiet ones, without using custom patched versions.

Metadata

Metadata

Assignees

Labels

area/controllerAffects the (main) controllerarea/management-controllerAffects the controller that manages the Kargo control plane itselfkind/enhancementAn entirely new featureneeds discussionA maintainer explicitly requests no action be taken without further discussionpriority/lowLow commitment from maintainers; progress is likely to be community-driven

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions