Skip to content

Commit b422d48

Browse files
committed
list pods as debug message
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
1 parent d3ebea5 commit b422d48

File tree

1 file changed

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

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,19 @@ private LocalPortForward portForward(String labelKey, String labelValue, int por
121121
}
122122

123123
private Optional<Pod> findReadyPod(String labelKey, String labelValue) {
124+
if (log.isDebugEnabled()) {
125+
log.debug(
126+
"Pods with label selectors '{}={}': {}",
127+
labelKey,
128+
labelValue,
129+
client
130+
.pods()
131+
.inNamespace(OBSERVABILITY_NAMESPACE)
132+
.withLabel(labelKey, labelValue)
133+
.list()
134+
.getItems());
135+
}
136+
124137
return client
125138
.pods()
126139
.inNamespace(OBSERVABILITY_NAMESPACE)

0 commit comments

Comments
 (0)