Skip to content

Commit e695475

Browse files
committed
pgrep command doesn't exist in the latest pmm docker image - workaround
1 parent 2c57938 commit e695475

File tree

1 file changed

+1
-2
lines changed
  • e2e-tests/monitoring-2-0

1 file changed

+1
-2
lines changed

e2e-tests/monitoring-2-0/run

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ else
3232
retry 10 60 helm install monitoring --set imageTag=$IMAGE_PMM_SERVER_TAG --set imageRepo=$IMAGE_PMM_SERVER_REPO --set platform=$platform https://percona-charts.storage.googleapis.com/pmm-server-${PMM_SERVER_VER}.tgz
3333
fi
3434
sleep 20
35-
SERVICE="postgres"
36-
until kubectl_bin exec monitoring-0 -- bash -c "pgrep -x $SERVICE >/dev/null"; do
35+
until kubectl_bin exec monitoring-0 -- bash -c "ls -l /proc/*/exe 2>/dev/null| grep postgres >/dev/null"; do
3736
echo "Retry $retry"
3837
sleep 5
3938
let retry+=1

0 commit comments

Comments
 (0)