Commit dfa20d6
committed
Drop expiration in the alert cache
The cache in `AlertGetter` might not be that useful because it expires mostly before the next call happens and it could lead to stale data. The cache is kept to preserve the presence of an alert to avoid breaking if an attempt to retrieve alerts hiccuped. We rely on the existing `minimumUpdateCheckInterval` to avoid bombarding the OpenShift monitoring.
We may come back to figure out a more efficient method to get the alerts instead of polling periodically if performance becomes an issue.1 parent dd17fbf commit dfa20d6
1 file changed
Lines changed: 5 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | | - | |
| 28 | + | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 34 | + | |
| 35 | + | |
39 | 36 | | |
40 | 37 | | |
41 | 38 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 39 | + | |
| 40 | + | |
46 | 41 | | |
47 | 42 | | |
48 | 43 | | |
| |||
89 | 84 | | |
90 | 85 | | |
91 | 86 | | |
92 | | - | |
93 | 87 | | |
94 | 88 | | |
95 | 89 | | |
0 commit comments