Closed snowdrop-bot closed 3 years ago
The method below may return null, when adapt fails.
adapt
private static OpenShiftClient toOpenshiftClient(KubernetesClient client) { try { return client.adapt(OpenShiftClient.class); } catch (KubernetesClientException e) { KubernetesClientErrorHandler.handle(e); return null; // will never happen } }
So, what is supposed to never happen actually does.
handle() should always throw an Exception
handle()
handle() only throws SSL related exception Exception
Just create an app add the quarkus-openshift extension and run mvn -Dquarkus.kubernetes.deploy=true against an unreachable cluster.
quarkus-openshift
mvn -Dquarkus.kubernetes.deploy=true
uname -a
ver
No response
java -version
mvnw --version
gradlew --version
https://github.com/quarkusio/quarkus/issues/19870
$upstream:19870$
Describe the bug
The method below may return null, when
adapt
fails.So, what is supposed to never happen actually does.
Expected behavior
handle()
should always throw an ExceptionActual behavior
handle()
only throws SSL related exception ExceptionHow to Reproduce?
Just create an app add the
quarkus-openshift
extension and runmvn -Dquarkus.kubernetes.deploy=true
against an unreachable cluster.Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
https://github.com/quarkusio/quarkus/issues/19870
$upstream:19870$