-
Task
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
Product / Portfolio Work
-
False
-
-
False
-
1
-
None
-
None
-
OCPEDGE Sprint 280
-
1
one test case would be to:
-
- Deploy a simple workload:
Create a Deployment with 2 pause pods labeled app=pdb-demo.
- Deploy a simple workload:
-
- Apply a PDB:
Create a PDB with minAvailable = 1 targeting the same pods.
- Apply a PDB:
-
- Validate initial state:
Confirm disruptionsAllowed = 1, meaning one eviction should be permitted.
- Validate initial state:
-
- Test permitted eviction:
Evict the first pod via the /eviction API.
Expected: eviction succeeds (HTTP 200/201).
- Test permitted eviction:
-
- Test enforced protection:
Immediately attempt to evict the second pod.
Expected: eviction blocked with HTTP 429 Too Many Requests.
- Test enforced protection:
-
- Validate PDB status:
Ensure disruptionsAllowed = 0, confirming the PDB is correctly preventing further disruptions.
- Validate PDB status: