Skip to content

Commit

Permalink
pgrep command doesn't exist in the latest pmm docker image - workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
ptankov committed Oct 16, 2023
1 parent d24a89e commit 53fb083
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions e2e-tests/functions
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ deploy_pmm_server() {

helm install monitoring -n $NAMESPACE --set imageTag=${IMAGE_PMM_SERVER#*:} --set imageRepo=${IMAGE_PMM_SERVER%:*} $additional_params https://percona-charts.storage.googleapis.com/pmm-server-$PMM_SERVER_VERSION.tgz

local SERVICE="postgres"
until kubectl -n $NAMESPACE exec monitoring-0 -- bash -c "pgrep -x $SERVICE >/dev/null"; do
until kubectl -n $NAMESPACE exec monitoring-0 -- bash -c "ls -l /proc/*/exe 2>/dev/null| grep postgres >/dev/null"; do
echo "Retry $retry"
sleep 5
let retry+=1
Expand Down

0 comments on commit 53fb083

Please sign in to comment.