File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
util/src/main/java/io/kubernetes/client/informer Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -258,9 +258,22 @@ public ApiListType list(CallGeneratorParams params) throws ApiException {
258
258
259
259
public Watchable <ApiType > watch (CallGeneratorParams params ) throws ApiException {
260
260
if (Namespaces .NAMESPACE_ALL .equals (namespace )) {
261
- return genericKubernetesApi .watch ();
261
+ return genericKubernetesApi .watch (
262
+ new ListOptions () {
263
+ {
264
+ setResourceVersion (params .resourceVersion );
265
+ setTimeoutSeconds (params .timeoutSeconds );
266
+ }
267
+ });
262
268
} else {
263
- return genericKubernetesApi .watch (namespace );
269
+ return genericKubernetesApi .watch (
270
+ namespace ,
271
+ new ListOptions () {
272
+ {
273
+ setResourceVersion (params .resourceVersion );
274
+ setTimeoutSeconds (params .timeoutSeconds );
275
+ }
276
+ });
264
277
}
265
278
}
266
279
};
You can’t perform that action at this time.
0 commit comments