Skip to content

coordinator: fix anti-affinity by moving pod-role to label#2504

Open
burgerdev wants to merge 2 commits into
dav/annotation-varsfrom
burgerdev/anno-label
Open

coordinator: fix anti-affinity by moving pod-role to label#2504
burgerdev wants to merge 2 commits into
dav/annotation-varsfrom
burgerdev/anno-label

Conversation

@burgerdev

@burgerdev burgerdev commented Jul 3, 2026

Copy link
Copy Markdown
Member

The Contrast Coordinator used to specify an anti-affinity based on pod role label, which was ineffective because the pod role was, in fact, an annotation. With this change, we're moving the pod role to a label.


Labels are a bit more restrictive than annotations, but we can easily fit the pod role into a label. Doing so allows using the pod role in selectors, such as for anti-affinity (where we're already selecting by the label, which did not have an effect) or in the peerdiscovery watcher. Having a label that is separate from the pod selector labels also allows exposing Coordinator's from different controllers with services.

Fixes CON-213.
Fixes CON-206.

davidweisse and others added 2 commits July 2, 2026 15:07
Labels are a bit more restrictive than annotations, but we can easily
fit the pod role into a label. Doing so allows using the pod role in
selectors, such as for anti-affinity (where we're already selecting by
the label, which did not have an effect) or in the peerdiscovery
watcher. Having a label that is separate from the pod selector labels
also allows exposing Coordinator's from different controllers with
services.
@burgerdev burgerdev requested a review from davidweisse July 3, 2026 05:46
@burgerdev burgerdev added the bug fix Fixing a user facing bug label Jul 3, 2026
@linear-code

linear-code Bot commented Jul 3, 2026

Copy link
Copy Markdown

CON-213

CON-206

@davidweisse davidweisse force-pushed the dav/annotation-vars branch from 7be9299 to 746a20e Compare July 6, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix Fixing a user facing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants