From 7bc64695aace84a3022cb7af621dec8ff6454e04 Mon Sep 17 00:00:00 2001 From: Yutaro Hayakawa Date: Fri, 16 Jun 2023 17:48:09 +0900 Subject: [PATCH] sysdump: Fix wrong CiliumLoadBalancerIPPools collector Currently, we incorrectly dump CiliumBGPPeeringPolicy for CiliumLoadBalancerIPPools dump. Fix it. ``` $ cat ciliumloadbalancerippools-20230331-074532.yaml apiVersion: cilium.io/v2alpha1 items: - apiVersion: cilium.io/v2alpha1 kind: CiliumBGPPeeringPolicy metadata: ... ``` Signed-off-by: Yutaro Hayakawa --- sysdump/sysdump.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdump/sysdump.go b/sysdump/sysdump.go index 0b9488e415..fb43508e77 100644 --- a/sysdump/sysdump.go +++ b/sysdump/sysdump.go @@ -644,7 +644,7 @@ func (c *Collector) Run() error { Description: "Collecting Cilium LoadBalancer IP Pools", Quick: true, Task: func(ctx context.Context) error { - v, err := c.Client.ListCiliumBGPPeeringPolicies(ctx, metav1.ListOptions{}) + v, err := c.Client.ListCiliumLoadBalancerIPPools(ctx, metav1.ListOptions{}) if err != nil { return fmt.Errorf("failed to collect Cilium LoadBalancer IP Pools: %w", err) }