File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
.github/resources/scripts Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ MULTI_USER=false
3232STORAGE_BACKEND=" seaweedfs"
3333AWF_VERSION=" "
3434POD_TO_POD_TLS_ENABLED=false
35+ SEAWEEDFS_INIT_TIMEOUT=300s
3536
3637# Loop over script arguments passed. This uses a single switch-case
3738# block with default value in case we want to make alternative deployments
@@ -203,6 +204,17 @@ then
203204 exit 1
204205fi
205206
207+ # Ensure SeaweedFS S3 auth is configured before proceeding
208+ if [ " ${STORAGE_BACKEND} " == " seaweedfs" ]; then
209+ wait_for_seaweedfs_init kubeflow " ${SEAWEEDFS_INIT_TIMEOUT} " || EXIT_CODE=$?
210+ if [[ $EXIT_CODE -ne 0 ]]
211+ then
212+ echo " SeaweedFS init job did not complete successfully."
213+ exit 1
214+ fi
215+ echo " SeaweedFS init job completed successfully."
216+ fi
217+
206218# Verify pipeline integration for multi-user mode
207219if [ " ${MULTI_USER} " == " true" ]; then
208220 echo " Verifying Pipeline Integration..."
Original file line number Diff line number Diff line change @@ -61,6 +61,17 @@ wait_for_pods () {
6161 python " ${C_DIR} " /kfp-readiness/wait_for_pods.py
6262}
6363
64+ wait_for_seaweedfs_init () {
65+ # Wait for SeaweedFS init job to complete to ensure S3 auth is configured
66+ local namespace=" $1 "
67+ local timeout=" $2 "
68+ if kubectl -n " $namespace " get job init-seaweedfs > /dev/null 2>&1 ; then
69+ if ! kubectl -n " $namespace " wait --for=condition=complete --timeout=" $timeout " job/init-seaweedfs; then
70+ return 1
71+ fi
72+ fi
73+ }
74+
6475deploy_with_retries () {
6576 if [[ $# -ne 4 ]]
6677 then
You can’t perform that action at this time.
0 commit comments