Skip to content

fix(kafka): patch pod metadata in place instead of restarting broker - #327

Merged
azun merged 2 commits into
masterfrom
feat/broker-fast-reconcile
Sep 8, 2026
Merged

fix(kafka): patch pod metadata in place instead of restarting broker#327
azun merged 2 commits into
masterfrom
feat/broker-fast-reconcile

Conversation

@azun

@azun azun commented Aug 28, 2026

Copy link
Copy Markdown

Description

When the only drift between the desired and current pod is metadata.labels, deleting and recreating the broker pod is unnecessary and slows down reconciliation. Detect label-only diffs from the computed patch and apply them directly via a merge patch, skipping the rolling-restart path.

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change
  • Refactor
  • Documentation
  • Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@azun
azun force-pushed the feat/broker-fast-reconcile branch from d352f19 to aed35f2 Compare August 28, 2026 12:59
When the only drift between the desired and current pod is
metadata.labels, deleting and recreating the broker pod is
unnecessary and slows down reconciliation. Detect label-only
diffs from the computed patch and apply them directly via a
merge patch, skipping the rolling-restart path.
@amuraru
amuraru force-pushed the feat/broker-fast-reconcile branch from e0d25c8 to de56c68 Compare September 7, 2026 09:04
@azun
azun merged commit 9275a27 into master Sep 8, 2026
7 checks passed
@azun
azun deleted the feat/broker-fast-reconcile branch September 8, 2026 08:01
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