Uploaded image for project: 'OpenShift Edge Enablement'
  1. OpenShift Edge Enablement
  2. OCPEDGE-2232

Test to Validate (PDB) Behavior in TNF Degraded Mode

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Two Node Fencing
    • 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.
        • Apply a PDB:
          Create a PDB with minAvailable = 1 targeting the same pods.
        • Validate initial state:
          Confirm disruptionsAllowed = 1, meaning one eviction should be permitted.
        • Test permitted eviction:
          Evict the first pod via the /eviction API.
          Expected: eviction succeeds (HTTP 200/201).
        • Test enforced protection:
          Immediately attempt to evict the second pod.
          Expected: eviction blocked with HTTP 429 Too Many Requests.
        • Validate PDB status:
          Ensure disruptionsAllowed = 0, confirming the PDB is correctly preventing further disruptions.

              nhamza12 Neil Hamza
              nhamza12 Neil Hamza
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: