Skip to content

Commit

Permalink
Multiplying timeout three times, decreasing check frequency to every …
Browse files Browse the repository at this point in the history
…15 seconds

Signed-off-by: Tibor Dancs (tdancs-dogfooding) <[email protected]>
  • Loading branch information
ScrewTSW committed Jul 27, 2023
1 parent 639cfcb commit 4b05755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .ci/oci-dashboard-happy-path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ function provisionOpenShiftOAuthUser() {
oc rollout status -n openshift-authentication deployment/oauth-openshift
echo -e "[INFO] Waiting for htpasswd auth to be working up to 5 minutes"
CURRENT_TIME=$(date +%s)
ENDTIME=$(($CURRENT_TIME + 300))
ENDTIME=$(($CURRENT_TIME + 900))
while [ $(date +%s) -lt $ENDTIME ]; do
if oc login -u happypath-dev -p dev --kubeconfig $TMP_KUBECONFIG; then
return 0
fi
sleep 10
sleep 15
done
echo "[ERROR] Che htpasswd changes are not affected after timeout."
exit 1
Expand Down

0 comments on commit 4b05755

Please sign in to comment.