Skip to content

Commit

Permalink
Remove leftovers from MetalLB CR migration path. (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Oct 24, 2024
1 parent a6b4d62 commit fdd7863
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/controllers/loadbalancer/loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,15 +344,6 @@ func (l *LoadBalancerController) updateLoadBalancerConfig(ctx context.Context, n
return err
}

// TODO: in a future release this can be removed
err = l.K8sClient.Delete(ctx, &v1.ConfigMap{ObjectMeta: metav1.ObjectMeta{
Name: "config",
Namespace: metallbNamespace,
}})
if client.IgnoreNotFound(err) != nil {
return fmt.Errorf("unable to cleanup deprecated metallb configmap: %w", err)
}

err = config.WriteCRs(ctx, l.K8sClient)
if err != nil {
return err
Expand Down

0 comments on commit fdd7863

Please sign in to comment.