Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding wait between deployments #39

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading