@@ -174,19 +174,32 @@ private void logDiagnosticInfo(KubernetesClient kubernetesClient, String namespa
174174 return ;
175175 }
176176
177- kubernetesClient .pods ().inNamespace (namespace ).list ().getItems ().forEach (pod -> LOGGER .error (
178- "Pod {} phase={} reason={} message={}" ,
179- pod .getMetadata ().getName (),
180- pod .getStatus () != null ? pod .getStatus ().getPhase () : null ,
181- pod .getStatus () != null ? pod .getStatus ().getReason () : null ,
182- pod .getStatus () != null ? pod .getStatus ().getMessage () : null ));
177+ kubernetesClient
178+ .pods ()
179+ .inNamespace (namespace )
180+ .list ()
181+ .getItems ()
182+ .forEach (
183+ pod ->
184+ LOGGER .error (
185+ "Pod {} phase={} reason={} message={}" ,
186+ pod .getMetadata ().getName (),
187+ pod .getStatus () != null ? pod .getStatus ().getPhase () : null ,
188+ pod .getStatus () != null ? pod .getStatus ().getReason () : null ,
189+ pod .getStatus () != null ? pod .getStatus ().getMessage () : null ));
183190
184- kubernetesClient .resourceList (operatorDeployment ).inNamespace (namespace ).forEach (resource -> LOGGER
185- .error (
186- "Resource {} {}" ,
187- resource .getKind (),
188- resource .getMetadata () != null ? resource .getMetadata ().getName () : null ));
191+ kubernetesClient
192+ .resourceList (operatorDeployment )
193+ .inNamespace (namespace )
194+ .get ()
195+ .forEach (
196+ resource ->
197+ LOGGER .error (
198+ "Resource {} {}" ,
199+ resource .getKind (),
200+ resource .getMetadata () != null ? resource .getMetadata ().getName () : null ));
189201 }
202+
190203 public static class Builder extends AbstractBuilder <Builder > {
191204 private final List <HasMetadata > operatorDeployment ;
192205 private Duration deploymentTimeout ;
0 commit comments