Commit 2b3234f
[AGENTONB-2759] Use k8s informer for helm metadata (#2488)
* informer on helm CMs/secrets
* add watch processing logic to helm metadata
* remove chartname from label filter
* use sync.Map and add release snapshot ticker
* cleanup unused args and methods
* use workqueue for informer events
* clean up uninstall deletion logic
* reduce logging
* update tests
* fix make fmt
* change ticker to 5 min
* allow helm metadata collection for DAWO
* change chart name
* use manager.Runnable pattern for helm metadata
* use getClient instead of getAPIReader
* fix deletion logic w/ revision number and delete prefix
* use releaseentry with mutex to prevent race condition
* use multiple workers with crash handling
* use 30 sec context timeout for all k8sclient calls
* Update pkg/controller/utils/metadata/helm_metadata.go
Co-authored-by: levan-m <116471169+levan-m@users.noreply.github.com>
* fix syntax issue from merge conflict
* make fmt
---------
Co-authored-by: Levan Machablishvili <levan.machablishvili@datadoghq.com>
Co-authored-by: levan-m <116471169+levan-m@users.noreply.github.com>1 parent bdfc654 commit 2b3234f
7 files changed
Lines changed: 647 additions & 487 deletions
File tree
- cmd
- pkg/controller/utils/metadata
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
391 | 398 | | |
392 | | - | |
393 | 399 | | |
394 | 400 | | |
395 | | - | |
396 | | - | |
397 | | - | |
| 401 | + | |
| 402 | + | |
398 | 403 | | |
399 | 404 | | |
400 | 405 | | |
| |||
629 | 634 | | |
630 | 635 | | |
631 | 636 | | |
632 | | - | |
633 | | - | |
634 | | - | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
635 | 641 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| |||
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
125 | | - | |
| 128 | + | |
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
| |||
132 | 135 | | |
133 | 136 | | |
134 | 137 | | |
135 | | - | |
136 | | - | |
| 138 | + | |
| 139 | + | |
137 | 140 | | |
138 | 141 | | |
139 | 142 | | |
| |||
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
| 155 | + | |
| 156 | + | |
152 | 157 | | |
153 | 158 | | |
154 | 159 | | |
| |||
224 | 229 | | |
225 | 230 | | |
226 | 231 | | |
227 | | - | |
| 232 | + | |
228 | 233 | | |
229 | 234 | | |
230 | 235 | | |
| |||
234 | 239 | | |
235 | 240 | | |
236 | 241 | | |
237 | | - | |
| 242 | + | |
238 | 243 | | |
239 | 244 | | |
240 | 245 | | |
| |||
259 | 264 | | |
260 | 265 | | |
261 | 266 | | |
262 | | - | |
| 267 | + | |
263 | 268 | | |
264 | 269 | | |
265 | 270 | | |
| |||
284 | 289 | | |
285 | 290 | | |
286 | 291 | | |
287 | | - | |
| 292 | + | |
288 | 293 | | |
289 | 294 | | |
290 | 295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
334 | 335 | | |
335 | 336 | | |
336 | 337 | | |
337 | | - | |
| 338 | + | |
338 | 339 | | |
339 | 340 | | |
340 | 341 | | |
| |||
0 commit comments