PR64-Test-Plan.md
Summary:
Add Upgradeable condition to OperatorCondition for safe operator upgrades
Description:
Implements an Upgradeable condition in the ZTWIM operator's OperatorCondition resource to signal to OLM when the operator is safe to upgrade.
Problem:
OLM currently upgrades operators at any time, which can interrupt reconciliation, cause service disruptions, or leave resources in inconsistent states.
pr =>https://github.com/openshift/zero-trust-workload-identity-manager/pull/64
Positive Test Cases
| Test Case | Description | Status | Notes |
| ----------- | ------------- | -------- | ------- |
| TC1 | Initial State | ✅ PASS | Upgradeable=True, no operands |
| TC2 | Deploy Operands | ✅ PASS | Upgradeable=False during deployment |
| TC3 | Monitor Progress | ✅ PASS | Upgradeable=True after complete |
| TC4 | Trigger Reconciliation | ✅ PASS | Correct transitions |
| TC5 | Delete Pod | ✅ PASS | Handles pod failures |
| TC6 | Required Fields | ✅ PASS | All fields present |
| TC7 | Operator Logs | ✅ PASS | Logs show updates |
| TC8 | OLM Integration | ✅ PASS | OLM compatible |
Negative Test Cases
| Test Case | Description | Status | Notes |
| ----------- | ------------- | -------- | ------- |
| N1 | Multiple Concurrent Updates | ✅ PASS | Correctly detected updates, 12s recovery |
| N2 | Delete Multiple Pods | ✅ PASS | All pods deleted, 32s recovery |
| N3 | Configuration Error | ✅ PASS | CrashLoopBackOff detected, 11min recovery |
| N4 | Rapid Successive Updates | ✅ PASS | 3 spec changes, CrashLoopBackOff, 28s recovery |
| N5 | Delete/Recreate Cycle | ✅ PASS | CR deletion = True, recreation handled |
| N6 | Operator Restart | ✅ PASS | Operator restarted, 15s recovery, reconciled |
| N7 | Storage Issues | ✅ PASS | Pod restart, 17s recovery, no PVC issues |
- impacts account
-
SPIRE-339 Upgradeable condition in OperatorCondition never transitions to True even when all operands are ready
-
- Closed
-
- links to