Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit fixes the collection of ports by storing the actual item instead of the address of the loop variable in the list. An example, because I find pointers confusing: Let's say our actual ports are [1, 2, 3]. Previously, GetPorts returned [3, 3, 3], and now we receive (as expected) [1, 2, 3]. I stumbled over this problem while applying force to lbaas by having a script create and delete services at random intervals as well as manually deleting the lbaas and the workload pod. This should resolve the resource leaks observed in cloudandheat#28. If we're lucky this might also help with lbaas eating FIPs.
- Loading branch information