Skip to content

Commit

Permalink
Merge pull request quarkusio#19871 from ioforks/13149-kubernetes-for-…
Browse files Browse the repository at this point in the history
…non-rest

Make KubernetesClientErrorHandler always throw a RuntimeException
  • Loading branch information
iocanel authored Sep 3, 2021
2 parents c554f83 + 57b1ffd commit 47a92b4
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ public static void handle(Exception e) {
if (e.getCause() instanceof SSLHandshakeException) {
LOG.error(
"The application could not be deployed to the cluster because the Kubernetes API Server certificates are not trusted. The certificates can be configured using the relevant configuration properties under the 'quarkus.kubernetes-client' config root, or \"quarkus.kubernetes-client.trust-certs=true\" can be set to explicitly trust the certificates (not recommended)");
if (e instanceof RuntimeException) {
throw (RuntimeException) e;
} else {
throw new RuntimeException(e);
}
}
if (e instanceof RuntimeException) {
throw (RuntimeException) e;
} else {
throw new RuntimeException(e);
}
}
}

0 comments on commit 47a92b4

Please sign in to comment.