Commit a7d9156
committed
fix(outbound): fix clientpolicy not work after remvoe service profile
This is a preview PR for linkerd/linkerd2#14274.
In linkerd/idle-cache/src/lib.rs get_or_insert_with function, seems the
sidercar with service profile and sidercar with client policy has the
same key, which cause the cache didn't expire after we delete
serviceprofile and create the new httproute for the target sevice for
pods that keep requesting the target service. this pr try to create
different keys for service profile httpsidecar and client policy httpsidecar
Signed-off-by: Guanjie Wang <ak47m61@gmail.com>1 parent bb612d3 commit a7d9156
1 file changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
47 | 63 | | |
48 | 64 | | |
49 | 65 | | |
| |||
196 | 212 | | |
197 | 213 | | |
198 | 214 | | |
| 215 | + | |
199 | 216 | | |
200 | 217 | | |
201 | 218 | | |
202 | 219 | | |
| 220 | + | |
203 | 221 | | |
204 | 222 | | |
205 | 223 | | |
| |||
210 | 228 | | |
211 | 229 | | |
212 | 230 | | |
| 231 | + | |
213 | 232 | | |
214 | 233 | | |
215 | 234 | | |
216 | 235 | | |
| 236 | + | |
217 | 237 | | |
218 | 238 | | |
219 | 239 | | |
| |||
334 | 354 | | |
335 | 355 | | |
336 | 356 | | |
| 357 | + | |
337 | 358 | | |
338 | 359 | | |
339 | 360 | | |
| |||
0 commit comments