Update vendor

This commit is contained in:
Darren Shepherd
2020-03-24 15:17:01 -07:00
parent 8f5ca57628
commit ed6d3f2b3a
4 changed files with 14 additions and 5 deletions

View File

@@ -87,8 +87,17 @@ func (c *summaryResourceClient) Watch(opts metav1.ListOptions) (watch.Interface,
}
go func() {
defer close(eventChan)
for event := range resp.ResultChan() {
event.Object = summary.Summarized(event.Object)
switch event.Type {
case watch.Added:
fallthrough
case watch.Modified:
fallthrough
case watch.Deleted:
event.Object = summary.Summarized(event.Object)
default:
}
eventChan <- event
}
}()