diff --git a/charts/trino/templates/tests/test-jmx.yaml b/charts/trino/templates/tests/test-jmx.yaml index 80c04d50..7dcd919c 100644 --- a/charts/trino/templates/tests/test-jmx.yaml +++ b/charts/trino/templates/tests/test-jmx.yaml @@ -23,6 +23,7 @@ spec: image: {{ include "trino.image" . }} command: ["/bin/bash", "-c"] args: + - sleep 60 - | output=$(curl -s "prometheus-operator-kube-p-prometheus.{{ .Release.Namespace }}:9090/api/v1/targets?scrapePool=serviceMonitor/{{ .Release.Namespace }}/{{ include "trino.fullname" . }}/0&state=active" | python -c 'import sys, json; print(json.load(sys.stdin)["data"]["activeTargets"][0]["discoveredLabels"]["__meta_kubernetes_service_name"])') && [ "$output" == "{{ include "trino.fullname" . }}" ]