Skip to content

Commit

Permalink
revert: Periodic refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreZiviani committed May 16, 2024
1 parent 8ebfa1a commit e2dfae4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporter/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (m *Metrics) GetPods(ctx context.Context) {
_, controller := cache.NewInformer(
watchlist,
&corev1.Pod{},
time.Minute*5,
time.Second*0,
cache.ResourceEventHandlerFuncs{
AddFunc: m.podCreated,
DeleteFunc: m.podRemoved,
Expand Down Expand Up @@ -172,7 +172,7 @@ func (m *Metrics) GetNodes(ctx context.Context) {
_, controller := cache.NewInformer(
watchlist,
&corev1.Node{},
time.Minute*5,
time.Second*0,
cache.ResourceEventHandlerFuncs{
AddFunc: m.nodeCreated,
DeleteFunc: m.nodeRemoved,
Expand Down

0 comments on commit e2dfae4

Please sign in to comment.