[WIP] Broker CR reconciler#1638
Draft
hidalgopl wants to merge 4 commits into
Draft
Conversation
Flesh out the Broker controller to manage pod lifecycle (create, adopt, shadow), PVC provisioning, status conditions, and broker ID resolution via the admin API. Pod-mutating actions are gated by the operator.redpanda.com/roll-grant annotation whose config-checksum must match the desired pod template checksum, keeping the Broker controller a dumb executor while the cluster controller serialises rolls. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Implement executeDecommission in the Broker reconciler: check DecommissionBrokerStatus, initiate if not yet started, block on last broker (RFC Q2). Add broker-crd.feature acceptance test covering the full lifecycle: pod adoption from orphan-deleted StatefulSet, roll-grant gating, broker ID resolution, and decommission to completion. Temporarily flip --enable-broker and --experimental defaults to true for testing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…roller Detect checksum drift between desired pod template and running pod. When a valid roll-grant is held and checksums diverge, enable maintenance mode on the broker via admin API, then delete the pod so the next reconcile recreates it from the updated spec. Adoption now stamps the checksum annotation on the pod to prevent a spurious delete+recreate cycle. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
…d finalizer, PV remediation, drain Restructure BrokerReconciler.Reconcile into a state struct + ordered sub-reconciler chain matching the RedpandaReconciler style. Add: - brokerReconciliationState / brokerReconcilerFn types - Finalizer with decommission-on-delete and rollback-safe removal - PV node-affinity remediation via pvcunbinder.DeadNodePVCs - Maintenance mode drain before pod rotation (ensureDrained) - Post-decommission pod + PVC cleanup - Broker ID continuity check and maintenance mode disable - Extended status conditions (PodScheduled, BrokerRegistered, ConfigOutdated, StorageBound) - Roll-grant deadline validation - Integration test suite and acceptance test steps Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.