Commit e453026
authored
CMP-4116: Fix platform scan pod stuck when RawResultStorage is disabled (#1097)
* Fix platform scan pod stuck when RawResultStorage is disabled
The addResultsCollectionPods function unconditionally added the TLS
volume and mount referencing the result-client-cert secret, which is
only created when RawResultStorage.Enabled=true. This caused the
platform scan pod to get stuck in Init:0/2 when RawResultStorage was
disabled.
Reuse getLogCollectorVolumeMounts and conditionally append the TLS
volume, matching the existing behavior in getNodeScannerPodVolumes.
Made-with: Cursor
* Add e2e test for platform scan with RawResultStorage disabled
Made-with: Cursor
* Move PVC check after scan completes to avoid race condition
* Use reliably compliant rule in platform no-storage e2e test1 parent 5746e95 commit e453026
2 files changed
Lines changed: 66 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
| 519 | + | |
531 | 520 | | |
532 | 521 | | |
533 | 522 | | |
| |||
549 | 538 | | |
550 | 539 | | |
551 | 540 | | |
552 | | - | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
553 | 544 | | |
554 | 545 | | |
555 | 546 | | |
556 | 547 | | |
557 | 548 | | |
558 | 549 | | |
559 | | - | |
| 550 | + | |
560 | 551 | | |
561 | 552 | | |
562 | 553 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2409 | 2409 | | |
2410 | 2410 | | |
2411 | 2411 | | |
| 2412 | + | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
| 2445 | + | |
| 2446 | + | |
| 2447 | + | |
| 2448 | + | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
2412 | 2473 | | |
2413 | 2474 | | |
2414 | 2475 | | |
| |||
0 commit comments