You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPARK-52997] Fixes wrong worker assignment if multiple clusters are deployed to the same namespace
### What changes were proposed in this pull request?
Updated the podSelector for master and worker services to include both clusterRole and name labels.
### Why are the changes needed?
Using only clusterRole caused service misrouting when multiple Spark clusters were deployed in the same namespace. Adding name ensures correct pod targeting.
### Does this PR introduce any user-facing change?
No, this is an internal fix to service selectors.
### How was this patch tested?
Tested with multiple clusters in the same namespace. Verified each service only matched its own pods via kubectl describe service.
Also adapted unit tests to reflect new behaviour
### Was this patch authored or co-authored using generative AI tooling?
Yes, PR metadata was assisted by AI, but code changes were made manually.
Closesapache#291 from schmaxXximilian/main.
Authored-by: Schmöller Maximilian <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
0 commit comments