We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e95de4 commit 78ac77fCopy full SHA for 78ac77f
1 file changed
examples/src/main/java/io/kubernetes/client/examples/ControllerExample.java
@@ -19,11 +19,16 @@
19
import io.kubernetes.client.util.CallGeneratorParams;
20
import java.io.IOException;
21
import java.time.Duration;
22
+import java.util.concurrent.TimeUnit;
23
24
public class ControllerExample {
25
public static void main(String[] args) throws IOException {
26
27
CoreV1Api coreV1Api = new CoreV1Api();
28
+ coreV1Api
29
+ .getApiClient()
30
+ .getHttpClient()
31
+ .setReadTimeout(0, TimeUnit.SECONDS); // infinite timeout
32
33
// instantiating an informer-factory, and there should be only one informer-factory globally.
34
SharedInformerFactory informerFactory = new SharedInformerFactory();
0 commit comments