Skip to content

Commit

Permalink
Fix xdsClient workloadController nil pointer
Browse files Browse the repository at this point in the history
when Kmesh mode is Ads

Signed-off-by: kangmingfa <1640528278@qq.com>
  • Loading branch information
bfforever committed May 24, 2024
1 parent 11cef22 commit 28ab28f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ func (c *Controller) Start() error {
}

c.client = NewXdsClient(c.mode, c.bpfWorkloadObj)
c.client.workloadController.Processor.Sm = secertManager
if c.client.workloadController != nil {
c.client.workloadController.Processor.Sm = secertManager
}

return c.client.Run(stopCh)
}
Expand Down

0 comments on commit 28ab28f

Please sign in to comment.