Skip to content

Commit 2f39935

Browse files
chore: cleanup
1 parent 6d39383 commit 2f39935

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

cns/restserver/internalapi.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,8 @@ func (service *HTTPRestService) ReconcileIPAMState(ncReqs []*cns.CreateNetworkCo
291291
}
292292
}
293293

294-
logger.Printf("Saved NC")
294+
logger.Debugf("ncReqs created successfully, now save IPs")
295+
295296
// index all the secondary IP configs for all the nc reqs, for easier lookup later on.
296297
allSecIPsIdx := make(map[string]*cns.CreateNetworkContainerRequest)
297298
for i := range ncReqs {
@@ -300,8 +301,6 @@ func (service *HTTPRestService) ReconcileIPAMState(ncReqs []*cns.CreateNetworkCo
300301
}
301302
}
302303

303-
logger.Printf("0")
304-
305304
// we now need to reconcile IP assignment.
306305
// considering that a single pod may have multiple ips (such as in dual stack scenarios)
307306
// and that IP assignment in CNS (as done by requestIPConfigsHelper) does not allow
@@ -330,10 +329,7 @@ func (service *HTTPRestService) ReconcileIPAMState(ncReqs []*cns.CreateNetworkCo
330329
return types.UnexpectedError
331330
}
332331

333-
logger.Printf("1")
334-
335332
for podKey, podIPs := range podKeyToPodIPs {
336-
logger.Printf("Pod is %s", podKey)
337333
var (
338334
desiredIPs []string
339335
ncIDs []string

0 commit comments

Comments
 (0)