Skip to content

Commit

Permalink
Wait for OSP to be available…
Browse files Browse the repository at this point in the history
… at least the pipeline components.

Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Nov 29, 2023
1 parent 84e6cfa commit 18e07d3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions hack/install-osp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ set -o errexit
set -o nounset
set -o pipefail

readonly export DEPLOYMENT_TIMEOUT="${DEPLOYMENT_TIMEOUT:-5m}"

function rollout_status() {
local namespace="${1}"
local deployment="${2}"

if ! kubectl --namespace="${namespace}" --timeout=${DEPLOYMENT_TIMEOUT} \
rollout status deployment "${deployment}"; then
fail "'${namespace}/${deployment}' is not deployed as expected!"
fi
}

OSP_VERSION=${1:-latest}
shift

Expand Down Expand Up @@ -37,3 +49,11 @@ spec:
sourceNamespace: openshift-marketplace
EOF

echo "Waiting for OpenShift Pipelines Operator to be available"
sleep 60

rollout_status "openshift-pipelines" "tekton-pipelines-controller"
rollout_status "openshift-pipelines" "tekton-pipelines-webhook"

oc get -n openshift-pipelines pods
tkn version

0 comments on commit 18e07d3

Please sign in to comment.