diff --git a/cmd/ciReleaseDeploy.go b/cmd/ciReleaseDeploy.go index dd25c31..2639871 100644 --- a/cmd/ciReleaseDeploy.go +++ b/cmd/ciReleaseDeploy.go @@ -336,11 +336,12 @@ var ciReleaseDeployCmd = &cobra.Command{ ${EXTRA_DB_USER_PASS} \ --values "${SILTA_CONFIG}" \ ${EXTRA_HELM_FLAGS} \ + --wait \ --timeout "${DEPLOYMENT_TIMEOUT}" &> helm-output.log & pid=$! # TODO: Rewrite this part - echo "Waiting for containers to start" + echo "Waiting for containers to start and be ready" TIME_WAITING=0 LOGS_SHOWN=false @@ -567,11 +568,12 @@ var ciReleaseDeployCmd = &cobra.Command{ --namespace="${NAMESPACE}" \ --values "${SILTA_CONFIG}" \ ${EXTRA_HELM_FLAGS} \ + --wait \ --timeout "${DEPLOYMENT_TIMEOUT}" &> helm-output.log & pid=$! # TODO: Rewrite this part - echo "Waiting for containers to start" + echo "Waiting for containers to start and be ready" TIME_WAITING=0 LOGS_SHOWN=false diff --git a/tests/release_test.go b/tests/release_test.go index 723f375..64f1e19 100644 --- a/tests/release_test.go +++ b/tests/release_test.go @@ -222,6 +222,7 @@ func TestReleaseDeployCmd(t *testing.T) { --namespace="${NAMESPACE}" \ --values "${SILTA_CONFIG}" \ ${EXTRA_HELM_FLAGS} \ + --wait \ --timeout "${DEPLOYMENT_TIMEOUT}" &> helm-output.log & pid=$!` CliExecTest(t, command, environment, testString, false) @@ -331,6 +332,7 @@ func TestReleaseDeployCmd(t *testing.T) { --namespace="${NAMESPACE}" \ --values "${SILTA_CONFIG}" \ ${EXTRA_HELM_FLAGS} \ + --wait \ --timeout "${DEPLOYMENT_TIMEOUT}" &> helm-output.log & pid=$!` CliExecTest(t, command, environment, testString, false)