Commit 06fa2ce
authored
fix: add cleanup of expirred metadata for ReplicaSets and Deployments (#1621)
Summary: The existing cleanup of resources does not include these kinds.
When kelvin encounters them in a cluster, a fatal error is raised and a
traceback printed as kelvin crashes (in debug builds). In non-debug
builds, the metadata service will just continue to collect these expired
resources; never removing them.
This patch adds cleanup of these resources to prevent crashing (in debug
builds) and to reclaim resources and do housekeeping in non-debug
builds.
Relevant Issues: #1620
Type of change: /kind bugfix
Test Plan: Tests in the metadata_state_test's CleanupExpiredMetadata
were enhanced to include tests for these two kinds
Signed-off-by: Tim Rupp <caphrim007@gmail.com>1 parent 2e7b467 commit 06fa2ce
File tree
2 files changed
+78
-0
lines changed2 files changed
+78
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
535 | 547 | | |
536 | 548 | | |
537 | 549 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
175 | 198 | | |
176 | 199 | | |
177 | 200 | | |
| |||
250 | 273 | | |
251 | 274 | | |
252 | 275 | | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
253 | 299 | | |
254 | 300 | | |
255 | 301 | | |
| |||
591 | 637 | | |
592 | 638 | | |
593 | 639 | | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
594 | 646 | | |
595 | 647 | | |
596 | 648 | | |
597 | 649 | | |
598 | 650 | | |
599 | 651 | | |
| 652 | + | |
| 653 | + | |
600 | 654 | | |
601 | 655 | | |
602 | 656 | | |
| |||
625 | 679 | | |
626 | 680 | | |
627 | 681 | | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
628 | 688 | | |
629 | 689 | | |
630 | 690 | | |
| |||
652 | 712 | | |
653 | 713 | | |
654 | 714 | | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
655 | 721 | | |
656 | 722 | | |
657 | 723 | | |
| |||
0 commit comments