Skip to content

Commit

Permalink
chore(collectors/pod): remove sleep when triggering on delete
Browse files Browse the repository at this point in the history
Signed-off-by: Aldo Lacuku <[email protected]>
  • Loading branch information
alacuku committed Sep 28, 2023
1 parent be083e1 commit 30eca1f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions collectors/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ package collectors

import (
"context"
"time"

"github.com/go-logr/logr"
corev1 "k8s.io/api/core/v1"
Expand Down Expand Up @@ -273,7 +272,6 @@ func (pc *PodCollector) triggerOwnersOnDeleteEvent(evt *events.GenericResource)
obj = NewPartialObjectMetadata(kind, &name)
}
if obj != nil {
time.Sleep(10 * time.Second)
ch <- event2.GenericEvent{Object: obj}
}
}(ref.Name, kind)
Expand Down

0 comments on commit 30eca1f

Please sign in to comment.