Commit 69535a4
authored
[VIRT] Restart descheduler-operator before running tests (#5133)
Add descheduler_operator_reconciled fixture that restarts the
descheduler-operator deployment before creating KubeDescheduler objects.
This ensures the operator reconciles after all OpenShift operators are
installed, properly protecting all "openshift-*" namespaces from
eviction. Without this, descheduler evicts pods from openshift-cnv
namespace.
Co-Authored-By: Claude Sonnet 4.5
##### What this PR does / why we need it:
Adds a module-scoped fixture that restarts the descheduler-operator
deployment to trigger reconciliation, ensuring proper namespace
protection before running descheduler tests.
##### Which issue(s) this PR fixes:
##### Special notes for reviewer:
##### jira-ticket:
<!-- full-ticket-url needs to be provided. This would add a link to the
pull request to the jira and close it when the pull request is merged
If the task is not tracked by a Jira ticket, just write "NONE".
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Tests**
* Enhanced descheduler test suite with improved operator reconciliation
verification to ensure consistent test execution.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Signed-off-by: Denys Shchedrivyi <dshchedr@redhat.com>1 parent 4358368 commit 69535a4
1 file changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
39 | 59 | | |
40 | | - | |
| 60 | + | |
41 | 61 | | |
42 | 62 | | |
43 | 63 | | |
| |||
53 | 73 | | |
54 | 74 | | |
55 | 75 | | |
| 76 | + | |
56 | 77 | | |
57 | 78 | | |
58 | 79 | | |
| |||
0 commit comments