Commit 42ec30c
fix: scope Secret/ConfigMap caches to user-argocd (cut memory)
The manager only reads the argocd static-user ConfigMap and Secret in
the user-argocd namespace, but the default informer cache watched every
Secret/ConfigMap cluster-wide (~33k secrets here), spiking cold-start
memory past 2Gi and OOMKilling the pod. Restrict these two types to
user-argocd via cache.Options.ByObject so memory stays bounded
regardless of cluster size. Pairs with the earlier limit bump (which
can be lowered again once this is confirmed in production).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 3eb9453 commit 42ec30c
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
78 | 97 | | |
79 | 98 | | |
80 | 99 | | |
| |||
0 commit comments