:seedling: Don't assume there is only one replica in e2e tests by tmshort · Pull Request #2379 · operator-framework/operator-controller

perdasilva

perdasilva

pedjak

For the upgrade e2e tests, don't assume there is onle one replica.
Get the number of replicas from the deployment and wait for the
deployment to have that many available. Use the lease to determine
the leader pod and reference that.

Note that the name format of leases for operator-controller and catalogd
are quite different; this doesn't change that, as it may have an impact
on the upgrade test itself.

Signed-off-by: Todd Short <tshort@redhat.com>
Assisted-by: Claude Code
Signed-off-by: Todd Short <tshort@redhat.com>

@openshift-ci openshift-ci bot added the approved

Indicates a PR has been approved by an approver from all required OWNERS files.

label

Dec 11, 2025