diff --git a/pkg/storage/kubernetes/ipam.go b/pkg/storage/kubernetes/ipam.go index 429bfe6df..40ebec0da 100644 --- a/pkg/storage/kubernetes/ipam.go +++ b/pkg/storage/kubernetes/ipam.go @@ -351,7 +351,8 @@ func (p *KubernetesIPPool) Update(ctx context.Context, reservations []whereabout } // apply the patch - _, err = p.client.WhereaboutsV1alpha1().IPPools(orig.GetNamespace()).Patch(ctx, orig.GetName(), types.JSONPatchType, patchData, metav1.PatchOptions{}) + patchresult, err := p.client.WhereaboutsV1alpha1().IPPools(orig.GetNamespace()).Patch(ctx, orig.GetName(), types.JSONPatchType, patchData, metav1.PatchOptions{}) + logging.Debugf("[CT] pool update patchresult: %v", patchresult) if err != nil { if errors.IsInvalid(err) { // expect "invalid" errors if any of the jsonpatch "test" Operations fail @@ -584,6 +585,7 @@ func IPManagementKubernetesUpdate(ctx context.Context, mode int, ipam *Kubernete time.Sleep(time.Duration(ipamConf.SleepForRace) * time.Second) } + logging.Debugf("[CT] pool update with : %v", usereservelist) err = pool.Update(requestCtx, usereservelist) if err != nil { logging.Errorf("IPAM error updating pool (attempt: %d): %v", j, err)