Skip to content

Commit a56be98

Browse files
committed
fixup! fixup! fixup! feat: ipam sync routine
1 parent 0628f19 commit a56be98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/ipam/sync.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import (
2929
func (lipam *LiqoIPAM) sync(ctx context.Context, syncFrequency time.Duration) {
3030
err := wait.PollUntilContextCancel(ctx, syncFrequency, false,
3131
func(ctx context.Context) (done bool, err error) {
32+
klog.Info("Started IPAM cache sync routine")
3233
now := time.Now()
3334
// networks created before this threshold will be removed from the cache if they are not present in the cluster.
3435
expiredThreshold := now.Add(-syncFrequency)
@@ -43,10 +44,11 @@ func (lipam *LiqoIPAM) sync(ctx context.Context, syncFrequency time.Duration) {
4344
return false, err
4445
}
4546

47+
klog.Info("Completed IPAM cache sync routine")
4648
return false, nil
4749
})
4850
if err != nil {
49-
klog.Error(err)
51+
klog.Errorf("IPAM cache sync routine failed: %v", err)
5052
os.Exit(1)
5153
}
5254
}

0 commit comments

Comments
 (0)