Skip to content

Commit

Permalink
Exiting the application when there was Kubernetes exception in fabric…
Browse files Browse the repository at this point in the history
…8 library, see fabric8io/kubernetes-client#1318 for more info (#48)
  • Loading branch information
mcwienczek authored and adam-sandor committed Nov 22, 2019
1 parent e3611b0 commit ad6ba5d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ private boolean markedForDeletion(R resource) {
public void onClose(KubernetesClientException e) {
if (e != null) {
log.error("Error: ", e);
// we will exit the application if there was a watching exception, because of the bug in fabric8 client
// see https://github.com/fabric8io/kubernetes-client/issues/1318
System.exit(1);
}
}
}

0 comments on commit ad6ba5d

Please sign in to comment.