Skip to content

Commit

Permalink
Debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Oct 24, 2024
1 parent 05d04c6 commit 5c0d9cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/controllers/loadbalancer/metallb/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"time"

"github.com/davecgh/go-spew/spew"
"github.com/metal-stack/metal-ccm/pkg/controllers/loadbalancer"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -89,7 +90,6 @@ func (cfg *metalLBConfig) WriteCRs(ctx context.Context, c client.Client) error {
return err
}
for _, existingPool := range addressPoolList.Items {
existingPool := existingPool
found := false
for _, pool := range cfg.AddressPools {
if pool.Name == existingPool.Name {
Expand Down Expand Up @@ -121,6 +121,10 @@ func (cfg *metalLBConfig) WriteCRs(ctx context.Context, c client.Client) error {
Addresses: pool.CIDRs,
AutoAssign: pool.AutoAssign,
}

klog.Info("writing address pool")
spew.Dump(ipAddressPool.Spec)

return nil
})
if err != nil {
Expand Down

0 comments on commit 5c0d9cd

Please sign in to comment.