Skip to content

Commit

Permalink
sysdump: Fix wrong CiliumLoadBalancerIPPools collector
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
YutaroHayakawa authored and tklauser committed Jun 16, 2023
1 parent 6c2d407 commit 20d512b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysdump/sysdump.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 20d512b

Please sign in to comment.