From ba014bc1fc135894517e79ff3f56ad9c5d569cbd Mon Sep 17 00:00:00 2001 From: qiyang Date: Fri, 22 Nov 2024 14:14:45 +0800 Subject: [PATCH] e2e test prometheus operator scrape config and probes Signed-off-by: qiyang --- .../targetallocator-prometheuscr/02-install.yaml | 1 + .../targetallocator-prometheuscr/chainsaw-test.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/tests/e2e-targetallocator/targetallocator-prometheuscr/02-install.yaml b/tests/e2e-targetallocator/targetallocator-prometheuscr/02-install.yaml index 7c3e72c9f0..2d2443b703 100644 --- a/tests/e2e-targetallocator/targetallocator-prometheuscr/02-install.yaml +++ b/tests/e2e-targetallocator/targetallocator-prometheuscr/02-install.yaml @@ -28,6 +28,7 @@ spec: enabled: true scrapeInterval: 1s scrapeConfigSelector: {} + probeSelector: {} serviceAccount: ta --- apiVersion: monitoring.coreos.com/v1alpha1 diff --git a/tests/e2e-targetallocator/targetallocator-prometheuscr/chainsaw-test.yaml b/tests/e2e-targetallocator/targetallocator-prometheuscr/chainsaw-test.yaml index 28f94d2e33..6eabf6b1e1 100755 --- a/tests/e2e-targetallocator/targetallocator-prometheuscr/chainsaw-test.yaml +++ b/tests/e2e-targetallocator/targetallocator-prometheuscr/chainsaw-test.yaml @@ -28,3 +28,6 @@ spec: file: 02-install.yaml - assert: file: 02-assert.yaml + catch: + - podLogs: + selector: app.kubernetes.io/managed-by=opentelemetry-operator