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
fix: Validate target IP before tearing down existing load balancer
Add a pre-flight validatePublicIPAvailable() check in EnsureLoadBalancer
when switching to a user-specified IP. This prevents leaving the service
in a broken state if the target IP is invalid or unavailable — the old
config is preserved and the error is returned immediately.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
returnnil, fmt.Errorf("cannot switch load balancer to IP %s: %w", service.Spec.LoadBalancerIP, err)
150
+
}
151
+
146
152
// Release the old IP first
147
153
klog.V(4).Infof("Deleting firewall rules for old ip and releasing old load balancer IP %v, switching to specified IP %v", lb.ipAddr, service.Spec.LoadBalancerIP)
0 commit comments