Skip to content

Commit

Permalink
Adding wait between deployments (#39)
Browse files Browse the repository at this point in the history
* Adding wait between deployments

* added 0 as arg
  • Loading branch information
tonyxrmdavidson committed Mar 29, 2024
1 parent 7d467e3 commit 57a918b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions openshift-ci/scripts/oci-model-registry-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ source "openshift-ci/scripts/colour_text_variables.sh"
deploy_and_wait() {
local manifest=$1
local resource_name=$(basename -s .yaml $manifest)
local wait_time=$2

sleep $wait_time

echo "Deploying $resource_name from $manifest..."

Expand Down Expand Up @@ -139,12 +142,12 @@ run_deployment_tests() {

# Main function for orchestrating deployments
main() {
deploy_and_wait $OPENDATAHUB_SUBSCRIPTION
deploy_and_wait $DSC_INITIALIZATION_MANIFEST
deploy_and_wait $OPENDATAHUB_SUBSCRIPTION 0
deploy_and_wait $DSC_INITIALIZATION_MANIFEST 20
check_pod_status "opendatahub" "-l component.opendatahub.io/name=model-registry-operator" 2
deploy_and_wait $DATA_SCIENCE_CLUSTER_MANIFEST
deploy_and_wait $MODEL_REGISTRY_DB_MANIFEST
deploy_and_wait $MODEL_REGISTRY_SAMPLE_MANIFEST
deploy_and_wait $DATA_SCIENCE_CLUSTER_MANIFEST 0
deploy_and_wait $MODEL_REGISTRY_DB_MANIFEST 20
deploy_and_wait $MODEL_REGISTRY_SAMPLE_MANIFEST 20
run_deployment_tests
}

Expand Down

0 comments on commit 57a918b

Please sign in to comment.