Skip to content

Commit 4a664e3

Browse files
committed
🚑 ttl
modified: controllers/pod_controller.go
1 parent abc4b1a commit 4a664e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/pod_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func cacheKeyFunc(obj interface{}) (string, error) {
4141
return obj.(PodRequests).Name, nil
4242
}
4343

44-
var cacheStore = cache.NewStore(cacheKeyFunc)
44+
var cacheStore = cache.NewTTLStore(cacheKeyFunc, 48*time.Hour)
4545

4646
// Reconcile handles a reconciliation request for a Pod.
4747
// If the Pod has the podHasAnnotation annotation, then Reconcile

0 commit comments

Comments
 (0)