Skip to content

Commit

Permalink
Fix netflow panic (#457)
Browse files Browse the repository at this point in the history
Co-authored-by: anjmao <[email protected]>
  • Loading branch information
anjmao and anjmao authored Jan 27, 2025
1 parent e8d2818 commit 18aa0b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/agent/daemon/state/netflow_pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ func (c *Controller) runNetflowPipeline(ctx context.Context) error {
if err != nil {
c.log.Errorf("getting cluster info: %v", err)
}
c.log.Infof("fetched cluster info, pod_cidr=%s, service_cidr=%s", clusterInfo.podCidr, clusterInfo.serviceCidr)
c.clusterInfo = clusterInfo
if clusterInfo != nil {
c.log.Infof("fetched cluster info, pod_cidr=%s, service_cidr=%s", clusterInfo.podCidr, clusterInfo.serviceCidr)
}

ticker := time.NewTicker(c.cfg.NetflowExportInterval)
defer func() {
Expand Down

0 comments on commit 18aa0b5

Please sign in to comment.