Skip to content

Commit

Permalink
Cr 8779 (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-codefresh authored Jan 23, 2022
1 parent 2270d83 commit fb25ff6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions server/application/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -962,8 +962,13 @@ func (s *Server) streamApplicationEvents(
return nil
}

if err := stream.Send(appEvent); err != nil {
return fmt.Errorf("failed to send event for resource %s/%s: %w", a.Namespace, a.Name, err)
if a.Labels != nil {
parentAppName := a.Labels["app.kubernetes.io/instance"]
if parentAppName == "" {
if err := stream.Send(appEvent); err != nil {
return fmt.Errorf("failed to send event for resource %s/%s: %w", a.Namespace, a.Name, err)
}
}
}

// get the desired state manifests of the application
Expand Down

0 comments on commit fb25ff6

Please sign in to comment.