Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* pool-manager/pool_test: Give meaningful names to const MACs Signed-off-by: Ram Lavi <[email protected]> * pkg/pool: Use multus consts The networks and network-status annotations consts are set on multus repo, and controlled by it. Using their consts to keep consistency. For example, the deprecated 'k8s.v1.cni.cncf.io/networks-status' annotation is replaced by the new one 'k8s.v1.cni.cncf.io/network-status' Signed-off-by: Ram Lavi <[email protected]> * pool_test: Refactor closure functions be be regular functions There is no good reason to use these functions as closure functions. Moving them to be regular functions, thus reducing code complexity. Signed-off-by: Ram Lavi <[email protected]> * pool_test: Change checkMacPoolMapEntries to check for deleted MACs Currently not all unit tests check macpool size after doing changes in the macpool map (allocate, update or delete MACs entries) Moving the check inside checkMacPoolMapEntries so that all tests check this, removing the now redundant checks. Also refactoring use of "errors.New(fmt.Sprintf(...))" into "fmt.Errorf(...)" Signed-off-by: Ram Lavi <[email protected]> * pool: Reformat pod and network struct definitions using formatted view instead of long lines improves readability Signed-off-by: Ram Lavi <[email protected]> --------- Signed-off-by: Ram Lavi <[email protected]>
- Loading branch information