Skip to content

Commit ad6ba5d

Browse files
mcwienczekadam-sandor
authored andcommitted
Exiting the application when there was Kubernetes exception in fabric8 library, see fabric8io/kubernetes-client#1318 for more info (#48)
1 parent e3611b0 commit ad6ba5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

operator-framework/src/main/java/com/github/containersolutions/operator/EventDispatcher.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ private boolean markedForDeletion(R resource) {
111111
public void onClose(KubernetesClientException e) {
112112
if (e != null) {
113113
log.error("Error: ", e);
114+
// we will exit the application if there was a watching exception, because of the bug in fabric8 client
115+
// see https://github.com/fabric8io/kubernetes-client/issues/1318
116+
System.exit(1);
114117
}
115118
}
116119
}

0 commit comments

Comments
 (0)