Commit 10474d5
authored
fix: add namespace cache fallback to IAMRoleSelector cache (#216)
When the IAMRoleSelector feature is enabled, the IAMRoleSelector cache
runs its own `NamespaceCache` to support namespace based matching.
However, the reconciler's namespace lookup methods (`getDefaultRegion`,
`getEndpointURL`, `getDeletionPolicy`) were only checking
`carmCache.Namespaces`, causing these values to be unavailable when only
the IAMRoleSelector cache was running. This change makes the `Namespaces`
field public on the IAMRoleSelector cache and adds fallback logic in the
reconciler to check `irsCache.Namespaces` when `carmCache.Namespaces`
doesn't have the requested data, ensuring namespace annotations remain
accessible regardless of which cache is active.1 parent db66fa4 commit 10474d5
2 files changed
+16
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
393 | 396 | | |
394 | 397 | | |
395 | 398 | | |
| |||
1472 | 1475 | | |
1473 | 1476 | | |
1474 | 1477 | | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
1475 | 1481 | | |
1476 | 1482 | | |
1477 | 1483 | | |
| |||
1501 | 1507 | | |
1502 | 1508 | | |
1503 | 1509 | | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
1504 | 1513 | | |
1505 | 1514 | | |
1506 | 1515 | | |
| |||
1520 | 1529 | | |
1521 | 1530 | | |
1522 | 1531 | | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
1523 | 1535 | | |
1524 | 1536 | | |
1525 | 1537 | | |
| |||
0 commit comments