func (az *Cloud) EnsureLoadBalancerDeleted(ctx context.Context, clusterName string, service *v1.Service) error {
	isInternal := requiresInternalLoadBalancer(service)
	serviceName := getServiceName(service)
	glog.V(5).Infof("delete(%s): START clusterName=%q", serviceName, clusterName)

	serviceIPToCleanup, err := az.findServiceIPAddress(ctx, clusterName, service, isInternal)
	if err != nil {
		return err
	}

	glog.V(10).Infof("Calling reconcileSecurityGroup from EnsureLoadBalancerDeleted for %s with IP %s, wantLb = false", service.Name, serviceIPToCleanup)
	if _, err := az.reconcileSecurityGroup(clusterName, service, &serviceIPToCleanup, false /* wantLb */); err != nil {
		return err
	}

	if _, err := az.reconcileLoadBalancer(clusterName, service, nil, false /* wantLb */); err != nil {
		return err
	}

	if _, err := az.reconcilePublicIP(clusterName, service, false /* wantLb */); err != nil {
		return err
	}

	glog.V(2).Infof("delete(%s): FINISH", serviceName)
	return nil
}
// EnsureLoadBalancerDeleted deletes the specified load balancer if it
// exists, returning nil if the load balancer specified either didn't exist or
// was successfully deleted.
// This construction is useful because many cloud providers' load balancers
// have multiple underlying components, meaning a Get could say that the LB
// doesn't exist even if some part of it is still laying around.
EnsureLoadBalancerDeleted deletes the specified load balancer if it
exists, returning nil if the load balancer specified either didn't exist or
was successfully deleted.
This construction is useful because many cloud providers' load balancers
have multiple underlying components, meaning a Get could say that the LB
doesn't exist even if some part of it is still laying around.
// EnsureLoadBalancerDeleted deletes the specified load balancer if it // exists returning nil if the load balancer specified either didn ' t exist or // was successfully deleted . // This construction is useful because many cloud providers ' load balancers // have multiple underlying components meaning a Get could say that the LB // doesn ' t exist even if some part of it is still laying around .
func (az *Cloud) EnsureLoadBalancerDeleted(ctx context.Context, clusterName string, service *v1.Service) error {
	isInternal := requiresInternalLoadBalancer(service)
	serviceName := getServiceName(service)
	glog.V(5).Infof("delete(%s): START clusterName=%q", serviceName, clusterName)
	serviceIPToCleanup, err := az.findServiceIPAddress(ctx, clusterName, service, isInternal)
	if err != nil {
		return err
	}
	glog.V(10).Infof("Calling reconcileSecurityGroup from EnsureLoadBalancerDeleted for %s with IP %s, wantLb = false", service.Name, serviceIPToCleanup)
	if _, err := az.reconcileSecurityGroup(clusterName, service, &serviceIPToCleanup, false ); err != nil {
		return err
	}
	if _, err := az.reconcileLoadBalancer(clusterName, service, nil, false ); err != nil {
		return err
	}
	if _, err := az.reconcilePublicIP(clusterName, service, false ); err != nil {
		return err
	}
	glog.V(2).Infof("delete(%s): FINISH", serviceName)
	return nil
}
func ( az * Cloud ) EnsureLoadBalancerDeleted ( ctx context . Context , clusterName string , service * v1 . Service ) error { isInternal := requiresInternalLoadBalancer ( service ) serviceName := getServiceName ( service ) glog . V ( 5 ) . Infof ( " " , serviceName , clusterName ) serviceIPToCleanup , err := az . findServiceIPAddress ( ctx , clusterName , service , isInternal ) if err != nil { return err } glog . V ( 10 ) . Infof ( " " , service . Name , serviceIPToCleanup ) if _ , err := az . reconcileSecurityGroup ( clusterName , service , & serviceIPToCleanup , false ) ; err != nil { return err } if _ , err := az . reconcileLoadBalancer ( clusterName , service , nil , false ) ; err != nil { return err } if _ , err := az . reconcilePublicIP ( clusterName , service , false ) ; err != nil { return err } glog . V ( 2 ) . Infof ( " " , serviceName ) return nil }
EnsureLoadBalancerDeleted deletes the specified load balancer if it
exists, returning nil if the load balancer specified either didn't exist or
was successfully deleted.
EnsureLoadBalancerDeleted deletes the specified load balancer if it exists returning nil if the load balancer specified either didn ' t exist or was successfully deleted .
/* wantLb */ /* wantLb */ /* wantLb */