mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-23 09:18:26 +00:00
This commit is contained in:
parent
c47cc25690
commit
e3e4ae5d2e
1 changed files with 6 additions and 2 deletions
|
|
@ -518,8 +518,12 @@ func (s *Server) Watch(q *application.ApplicationQuery, ws application.Applicati
|
|||
done := make(chan bool)
|
||||
go func() {
|
||||
for next := range w.ResultChan() {
|
||||
a := *next.Object.(*appv1.Application)
|
||||
_ = sendIfPermitted(a, next.Type)
|
||||
a, ok := next.Object.(*appv1.Application)
|
||||
if ok {
|
||||
_ = sendIfPermitted(*a, next.Type)
|
||||
} else {
|
||||
break
|
||||
}
|
||||
}
|
||||
logCtx.Info("k8s application watch event channel closed")
|
||||
close(done)
|
||||
|
|
|
|||
Loading…
Reference in a new issue