This commit is contained in:
@@ -191,6 +191,9 @@ func (c *Controller) sync(ctx context.Context, key string) error {
|
||||
patch.Annotations[kloudlb.AnnotationIP] = ingressIP
|
||||
patch.Annotations[kloudlb.AnnotationVIP] = vip
|
||||
patch.Annotations[kloudlb.AnnotationLBID] = lb.ID
|
||||
if node := strings.TrimSpace(lb.Node); node != "" {
|
||||
patch.Annotations[kloudlb.AnnotationNode] = node
|
||||
}
|
||||
patch.Status = corev1.ServiceStatus{
|
||||
LoadBalancer: corev1.LoadBalancerStatus{
|
||||
Ingress: []corev1.LoadBalancerIngress{{IP: ingressIP}},
|
||||
|
||||
Reference in New Issue
Block a user