diff --git a/tests/manual_e2e/README.md b/tests/manual_e2e/README.md index 5fc1dbde..160b871e 100644 --- a/tests/manual_e2e/README.md +++ b/tests/manual_e2e/README.md @@ -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. diff --git a/tests/manual_e2e/basic_checks.sh b/tests/manual_e2e/basic_checks.sh index 9fbb5b00..7d738817 100755 --- a/tests/manual_e2e/basic_checks.sh +++ b/tests/manual_e2e/basic_checks.sh @@ -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"