Skip to content

Commit

Permalink
Add exit on deploy-database verification error
Browse files Browse the repository at this point in the history
  • Loading branch information
warrenchristian1telus committed Oct 9, 2024
1 parent 1ba72f1 commit 99a82a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
echo "Cleaning up PVCs associated with StatefulSet '${{ inputs.DB_NAME }}'..."
# Get the list of pods associated with the StatefulSet '${{ inputs.DB_NAME }}'
PODS=$(oc get pods -l app=${{ inputs.DB_NAME }} -o jsonpath='{.items[*].metadata.name}')
echo "PODS found: $PODS"
# Loop through each pod and delete associated PVCs
for POD in $PODS; do
# Get the list of PVCs associated with the pod
Expand Down
2 changes: 1 addition & 1 deletion openshift/scripts/deploy-database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ until [ $ATTEMPTS -eq $MAX_ATTEMPTS ]; do
# Check if the output contains an error
if echo "$OUTPUT" | grep -qi "error"; then
echo "❌ Database error: $OUTPUT"
# exit 1
exit 1
fi

# Extract the user count from the output
Expand Down

0 comments on commit 99a82a0

Please sign in to comment.