Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipam: report IP owner of non-default pool IPs in multi-pool IPAM
Before this change, only IPs from the default pool are reported in `cilium status --verbose` in the "Allocated addresses" section when using multi-pool IPAM mode. With this change, all IPs from non-default pools are reported as well by making use of the fact that the pool name is prepended to the IP in `(*multiPoolManager).dump`. Example: ``` % ks exec -it cilium-n8xw7 -- cilium status --verbose [...] IPAM: IPv4: 2 IPAM pool(s) available, Allocated addresses: 10.10.0.46 (router) 10.10.0.48 (kube-system/coredns-5d78c9869d-d4nts [restored]) 10.10.0.61 (kube-system/hubble-relay-597b7bdff8-pwl69 [restored]) 10.10.0.62 (health) jupiter/192.168.0.15 (default/nginx-jupiter) [...] ``` Note that IPs from non-default pools (in this case the `jupiter` pool) are reported with the pool name prefixed. Signed-off-by: Tobias Klauser <tobias@cilium.io>
- Loading branch information