Skip to content

Commit b741bfc

Browse files
johnharris85k8s-ci-robot
authored andcommitted
Fix incorrect internalLB deletion name (#173)
Signed-off-by: John Harris <[email protected]>
1 parent e95594b commit b741bfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/cloud/azure/actuators/cluster/reconciler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,11 @@ func (s *Reconciler) deleteLB() error {
213213
}
214214

215215
internalLBSpec := &internalloadbalancers.Spec{
216-
Name: azure.GenerateNodeSubnetName(s.scope.Cluster.Name),
216+
Name: azure.GenerateInternalLBName(s.scope.Cluster.Name),
217217
}
218218
if err := s.internalLBSvc.Delete(s.scope.Context, internalLBSpec); err != nil {
219219
if !azure.ResourceNotFound(err) {
220-
return errors.Wrapf(err, "failed to internal load balancer %s for cluster %s", azure.GenerateNodeSubnetName(s.scope.Cluster.Name), s.scope.Cluster.Name)
220+
return errors.Wrapf(err, "failed to internal load balancer %s for cluster %s", azure.GenerateInternalLBName(s.scope.Cluster.Name), s.scope.Cluster.Name)
221221
}
222222
}
223223
return nil

0 commit comments

Comments
 (0)