Fix: proper error hanlding and logging on pod deployment (#773)

This commit is contained in:
Igor Gov
2022-02-08 14:03:55 +02:00
committed by GitHub
parent 2c72c27bc9
commit f013b0f03c
2 changed files with 3 additions and 5 deletions

View File

@@ -29,12 +29,10 @@ func (wh *EventWatchHelper) Filter(wEvent *WatchEvent) (bool, error) {
if err != nil {
return false, nil
}
if !wh.NameRegexFilter.MatchString(event.Name) {
return false, nil
}
if strings.EqualFold(event.Regarding.Kind, wh.Kind) {
if !strings.EqualFold(event.Regarding.Kind, wh.Kind) {
return false, nil
}