Skip to content

Commit

Permalink
Add 60 second delay before PodMonitor test
Browse files Browse the repository at this point in the history
  • Loading branch information
kempspo committed Jun 12, 2024
1 parent 4fdf89f commit e0a9805
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions charts/trino/templates/tests/test-jmx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" . }}" ]
Expand Down

0 comments on commit e0a9805

Please sign in to comment.