Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions newsfragments/628.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix flakes in CI tests when checking monitored pods.
2 changes: 2 additions & 0 deletions tests/integration/test_networking.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ async def test_pods_monitored(
):
if pod.metadata and pod.metadata.annotations and "has-no-service-monitor" in pod.metadata.annotations:
continue
if pod.status and pod.status.phase in ("Terminating", "Succeeded"):
continue # Skip terminating pods
elif pod.metadata:
assert pod.metadata.name, "Encountered a pod without a name"
all_monitorable_pods.add(pod.metadata.name)
Expand Down
Loading