-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-55138] Don't close kubernetes client upon cache removal
Added a SaveableListener to invalidate cache when Jenkins object is being saved. Instead of blindly closing the KubernetesClient when evicted from the cache, put it in a list to monitor. Then every minute, PurgeExpiredKubernetesClients will check if there are still http connections and close it when it becomes unused.
- Loading branch information
Showing
1 changed file
with
131 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters