tao12345666333 commented on code in PR #1386:
URL:
https://github.com/apache/apisix-ingress-controller/pull/1386#discussion_r1043162771
##########
pkg/providers/apisix/provider_init.go:
##########
@@ -48,23 +48,26 @@ func (p *apisixProvider) Init(ctx context.Context) error {
pluginConfigMapA6 = make(map[string]string)
)
+ p.apisixSharedInformerFactory.Start(ctx.Done())
+ p.apisixSharedInformerFactory.WaitForCacheSync(ctx.Done())
Review Comment:
I think we should check its return value, and log it.
```go
synced := p.apisixSharedInformerFactory.WaitForCacheSync(ctx.Done())
for v, ok := range synced {
if !ok {
// Log it and return
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]