Commit f89465f
committed
occm: skip LB rename for shared load balancers from other clusters
When a Service references a shared load balancer via annotation, the
OCCM rename logic (added in #2552) sees a different cluster name in the
LB name and renames it. This breaks multi-cluster shared LB setups
because the owning cluster loses its LB name and tags.
Before renaming, verify that the LB's namespace and service name
components match the current Service. This distinguishes a legitimate
cluster-name change (same service, new cluster name) from a cross-cluster
shared LB access (different service entirely).
Fixes #26821 parent a031201 commit f89465f
1 file changed
+13
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1695 | 1695 | | |
1696 | 1696 | | |
1697 | 1697 | | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
1698 | 1701 | | |
1699 | | - | |
1700 | | - | |
1701 | | - | |
1702 | | - | |
1703 | | - | |
1704 | | - | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
1705 | 1712 | | |
1706 | 1713 | | |
1707 | 1714 | | |
| |||
0 commit comments