Skip to content

Commit d8932fd

Browse files
committed
wip
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
1 parent 9ebedaa commit d8932fd

File tree

1 file changed

+7
-0
lines changed
  • sample-operators/metrics-processing/src/test/java/io/javaoperatorsdk/operator/sample/metrics

1 file changed

+7
-0
lines changed

sample-operators/metrics-processing/src/test/java/io/javaoperatorsdk/operator/sample/metrics/MetricsHandlingE2E.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,13 @@ private LocalPortForward portForward(String labelKey, String labelValue, int por
130130
.list()
131131
.getItems()
132132
.stream()
133+
.filter(
134+
p ->
135+
p.getStatus() != null
136+
&& p.getStatus().getConditions() != null
137+
&& p.getStatus().getConditions().stream()
138+
.anyMatch(
139+
c -> "Ready".equals(c.getType()) && "True".equals(c.getStatus())))
133140
.findFirst()
134141
.orElseThrow(
135142
() ->

0 commit comments

Comments
 (0)