Skip to content

Commit

Permalink
update check script
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEnigmaa committed Sep 16, 2024
1 parent bd6954f commit 8aaf67a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/manual_e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Once that's done, please run the `basic_checks.sh` script which will check that
Once your app is correctly deployed and configured :

- Let it run for a bit, like 10min or more.
- Inspect the `Loki / Operational` dasboard which will give information on Loki's overall health.
- Inspect the `Loki / Canary` dasboard which will give information on Loki's overall health.
- If everything appears to be fine, then you can revert the flux's evicting procedure that you did and let it reconcile to its original version.

Congratulations, ou have completed the manual e2e testing procedure ! Your PR is now ready to be merged.
17 changes: 17 additions & 0 deletions tests/manual_e2e/basic_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,20 @@ if [[ "$canary" != "true" ]]; then
else
echo "loki-canary is indeed enabled"
fi

echo "Checking if all loki pods are up and running"

lokiComponents=("read" "write" "backend" "gateway")

for component in "${lokiComponents[@]}"; do
podStatus=$(kubectl get pods -n loki -l app.kubernetes.io/name=loki,app.kubernetes.io/component=$component -o yaml | yq .items[].status.phase)

for status in $podStatus; do
if [[ "$status" != "Running" ]]; then
echo "A $component pod is not running. Please check it before retrying"
exit 1
fi
done
done

echo "All loki pods are up and running"

0 comments on commit 8aaf67a

Please sign in to comment.