Skip to content

fix: Fix non-specific label selector on metrics service#6067

Merged
ntkathole merged 1 commit intofeast-dev:masterfrom
ntkathole:fix_labels
Mar 9, 2026
Merged

fix: Fix non-specific label selector on metrics service#6067
ntkathole merged 1 commit intofeast-dev:masterfrom
ntkathole:fix_labels

Conversation

@ntkathole
Copy link
Member

@ntkathole ntkathole commented Mar 5, 2026

What this PR does / why we need it:

The feast-operator-controller-manager-metrics-service uses a non-specific label selector (control-plane: controller-manager) that matches pods from any operator using the standard kubebuilder scaffolding label. In shared-namespace environments, where multiple operators are deployed in the same namespace, this causes the Service to incorrectly select pods belonging to other operators.

Added app.kubernetes.io/name: feast-operator to all selectors and pod template labels so that the metrics Service, Deployment, and ServiceMonitor uniquely identify Feast operator pods.


Open with Devin

@ntkathole ntkathole self-assigned this Mar 5, 2026
@ntkathole ntkathole requested a review from a team as a code owner March 5, 2026 03:09
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

spec:
selector:
matchLabels:
control-plane: controller-manager

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's also a problem here. We need to be careful for the upgrade path.

Copy link
Member Author

@ntkathole ntkathole Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it's not added there due to upgrade failure. It's immutable. But it doesn't cause the bug.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added, and documented the upgrade path

@ntkathole ntkathole force-pushed the fix_labels branch 3 times, most recently from 64b41c1 to c48a5ee Compare March 6, 2026 12:45
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
Copy link

@astefanutti astefanutti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ntkathole, LGTM 👍🏼

@ntkathole ntkathole merged commit a1a160d into feast-dev:master Mar 9, 2026
30 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants