Skip to content

feat: pvcRoles label for Kafka PVCs#255

Open
hvan wants to merge 4 commits into
masterfrom
feature/pvc-label
Open

feat: pvcRoles label for Kafka PVCs#255
hvan wants to merge 4 commits into
masterfrom
feature/pvc-label

Conversation

@hvan
Copy link
Copy Markdown
Collaborator

@hvan hvan commented May 26, 2026

Introduces a new pvcRoles label on PVCs created by the Kafka reconciler to reflect the process role(s) of the broker that owns the storage. In KRaft mode, the label value mirrors the node's processRoles (e.g. broker, controller, or broker_controller). In ZooKeeper mode, all nodes are brokers so the label is always broker.

@hvan hvan changed the title feature: PVC role labels feat: add pvcRoles label to Kafka PVCs for role identification May 26, 2026
Ha Van and others added 3 commits May 26, 2026 13:58
…nistic labels

- Extract private processRolesValue() on BrokerConfig as a single source
  of truth for the role join logic used by both GetBrokerLabels (processRoles
  pod label) and GetPvcRolesLabelValue (pvcRoles PVC label)
- Sort roles before joining so both labels are alphabetically ordered
  regardless of CR authoring order ([controller, broker] and [broker, controller]
  both produce broker_controller)
- Add backfill log line in PVC reconcile path so operators can observe
  the one-time label backfill on existing PVCs after upgrade

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hvan hvan marked this pull request as ready for review May 26, 2026 20:34
@hvan hvan changed the title feat: add pvcRoles label to Kafka PVCs for role identification feat: new pvcRoles label for Kafka PVCs May 26, 2026
@hvan hvan changed the title feat: new pvcRoles label for Kafka PVCs feat: pvcRoles label for Kafka PVCs May 26, 2026
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