Skip to content

Commit

Permalink
Merge pull request #54 from wunderio/feature/release-wait
Browse files Browse the repository at this point in the history
Wait flag for helm release, enables proper post-release creation
  • Loading branch information
Rade333 authored Jan 22, 2024
2 parents 14ee6e8 + df66a5f commit cccef55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/ciReleaseDeploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions tests/release_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit cccef55

Please sign in to comment.