Skip to content

Commit

Permalink
debug patch
Browse files Browse the repository at this point in the history
  • Loading branch information
caribbeantiger committed Sep 11, 2023
1 parent 5734a96 commit c3b6387
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/storage/kubernetes/ipam.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit c3b6387

Please sign in to comment.