Skip to content

Commit

Permalink
Improve identity provider timeout polling
Browse files Browse the repository at this point in the history
One of our tests for OpenShift uses a manual remediation to install an
identity provider before rescanning the environment. Something we've
noticed is that the remediation will timeout in e2e runs because the
authentication operator isn't ready yet after configuring the new
identity provider.

The default timeout is only 30 seconds, which likely isn't long enough
to restart the authentication operator.

We can make this remediation more robust by using `oc adm
wait-for-stable-cluster`, which waits up to an hour for the
authentication operator to come up. It also reduces the number of things
we need to check for by encapsulating the checks into a single command.
  • Loading branch information
rhmdnd committed Jul 2, 2024
1 parent 349ffa3 commit 5936a3c
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,5 @@ spec:
EOF


echo "waiting for authentication operator to become progressing"
oc wait clusteroperator authentication --for=condition=PROGRESSING

echo "waiting for authentication operator to become ready"
oc wait clusteroperator authentication --for=condition=Available
echo "waiting for a stable cluster"
oc adm wait-for-stable-cluster

0 comments on commit 5936a3c

Please sign in to comment.