-
Notifications
You must be signed in to change notification settings - Fork 254
Open
Copy link
Labels
bugcniRelated to CNI.Related to CNI.cnsRelated to CNS.Related to CNS.exempt-staleKeep this freshKeep this fresh
Description
I have not observed this however while reading the code, I noticed this as a possible condition that may not release the ip address.
file, err := os.Open(filepath) |
If os.Open(..) returns an error, we log however continue. io.ReadAll(...) returns an invalid argument error and continues (but logs error). The .Close function handles the nil condition and continues.
podInterfaceID := string(data) is just an empty string and assuming what ever was supposed to happen on line
if err := w.releaseIP(ctx, podInterfaceID, containerID); err != nil { |
Note: I didn't do a full analysis however the function looks suspect.
Copilot
Metadata
Metadata
Labels
bugcniRelated to CNI.Related to CNI.cnsRelated to CNS.Related to CNS.exempt-staleKeep this freshKeep this fresh