Skip to content

EPMDEDP-17188: fix: Enable leader election in the operator deployment#297

Merged
SergK merged 1 commit into
masterfrom
add-leader-election-to-helm
Jul 12, 2026
Merged

EPMDEDP-17188: fix: Enable leader election in the operator deployment#297
SergK merged 1 commit into
masterfrom
add-leader-election-to-helm

Conversation

@SergK

@SergK SergK commented Jul 12, 2026

Copy link
Copy Markdown
Member

The manager supports lease-based leader election (--leader-elect) but the chart never passed the flag, so during every rolling upgrade the overlapping old and new pods both ran all controllers and the stale branch checker. Enable it so exactly one instance reconciles at any time; the role already grants the required coordination.k8s.io/leases permissions.

The args block moves out of the enableWebhooks conditional since the flag applies in both modes.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Enhancement (non-breaking change which improves an existing feature or documentation)
  • Breaking change (fix or feature that would cause existing functionality not to work as expected)

How Has This Been Tested?

locally

The manager supports lease-based leader election (--leader-elect) but the
chart never passed the flag, so during every rolling upgrade the overlapping
old and new pods both ran all controllers and the stale branch checker.
Enable it so exactly one instance reconciles at any time; the role already
grants the required coordination.k8s.io/leases permissions.

The args block moves out of the enableWebhooks conditional since the flag
applies in both modes.

Signed-off-by: Sergiy Kulanov <sergiy_kulanov@epam.com>
@SergK SergK requested a review from a team as a code owner July 12, 2026 10:59
@SergK SergK merged commit 57935c0 into master Jul 12, 2026
4 checks passed
@SergK SergK deleted the add-leader-election-to-helm branch July 12, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant