Uploaded image for project: 'Red Hat OpenShift Control Planes'
  1. Red Hat OpenShift Control Planes
  2. CNTRLPLANE-2789

Add StatefulSet test case to controlplane-component reconcile tests

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • None
    • None
    • None

      Resolve the TODO at support/controlplane-component/controlplane-component_test.go line 74: "TODO(alberto): add StatefulSet test case."

      Why

      The reconcile logic in the controlplane-component package handles both Deployment and StatefulSet workloads, but the test table only covers the Deployment case. This leaves the StatefulSet path untested and risks regressions.

      Acceptance Criteria

      • Add a second table entry in the test covering StatefulSet workloads
      • Ensure the test validates that reconcile logic handles StatefulSet controllers correctly
      • Remove the TODO comment from the source

      Technical Details

      • File: support/controlplane-component/controlplane-component_test.go line 74
      • TODO text: "TODO(alberto): add StatefulSet test case."
      • Context: Table-driven reconcile test that currently only has a Deployment entry

              hypershift-automation hypershift-team automation
              rh-ee-brcox Bryan Cox
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: