Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipam/allocator: Fix nil check on node CIDR
[ upstream commit 8c5c737 ] Previously, the nil check was useless because the variable is never going to be nil, as it was initialized to an empty `nodeCIDRs` instance. This made the "Unable to allocate node CIDR" error impossible to surface. This commit fixes this by making the variable not a pointer, but rather a value, and reworking the further checks to ensure that the error in allocating a node CIDR can be surfaced. Fixes: ef6ecbd ("add error log When ipam allocate nodecidr failure") Fixes: #13299 Signed-off-by: Chris Tarazi <chris@isovalent.com> Signed-off-by: Tom Payne <tom@isovalent.com>
- Loading branch information