File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed
operator-framework/src/main/java/com/github/containersolutions/operator/processing Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -100,14 +100,4 @@ private void addFinalizerIfNotPresent(R resource) {
100
100
private boolean markedForDeletion (R resource ) {
101
101
return resource .getMetadata ().getDeletionTimestamp () != null && !resource .getMetadata ().getDeletionTimestamp ().isEmpty ();
102
102
}
103
-
104
- @ Override
105
- public void onClose (KubernetesClientException e ) {
106
- if (e != null ) {
107
- log .error ("Error: " , e );
108
- // we will exit the application if there was a watching exception, because of the bug in fabric8 client
109
- // see https://github.com/fabric8io/kubernetes-client/issues/1318
110
- System .exit (1 );
111
- }
112
- }
113
103
}
Original file line number Diff line number Diff line change @@ -168,10 +168,14 @@ void eventProcessingFailed(CustomResourceEvent event) {
168
168
}
169
169
}
170
170
171
- // todo review this in light of new restart functionality from master
172
171
@ Override
173
172
public void onClose (KubernetesClientException e ) {
174
- // todo re apply the watch
173
+ if (e != null ) {
174
+ log .error ("Error: " , e );
175
+ // we will exit the application if there was a watching exception, because of the bug in fabric8 client
176
+ // see https://github.com/fabric8io/kubernetes-client/issues/1318
177
+ System .exit (1 );
178
+ }
175
179
}
176
180
}
177
181
You can’t perform that action at this time.
0 commit comments