Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
daemon, ipam: omit IPAM mode check before calling ipam.Allocator.Rest…
…oreFinished The IPAM modes which were left out of the condition (kubernetes, cluster-pool and delegated-plugin) all implement a noop RestoreFinished method in their allocator. The kubernetes and cluster-pool modes uses hostscopeAllocator: https://github.com/cilium/cilium/blob/e84e99f16ed0862dc6fd79c09480eb7e08e50ad2/pkg/ipam/ipam.go#L116-L128 and thus its noop RestoreFinished method: https://github.com/cilium/cilium/blob/e84e99f16ed0862dc6fd79c09480eb7e08e50ad2/pkg/ipam/hostscope.go#L98-L99 The delegated-plugin mode uses noopAllocator: https://github.com/cilium/cilium/blob/e84e99f16ed0862dc6fd79c09480eb7e08e50ad2/pkg/ipam/ipam.go#L147-L154 and thus its noop RestoreFinished method: https://github.com/cilium/cilium/blob/e84e99f16ed0862dc6fd79c09480eb7e08e50ad2/pkg/ipam/noop_allocator.go#L42-L43 Signed-off-by: Tobias Klauser <tobias@cilium.io>
- Loading branch information