Skip to content

Commit 071c4b9

Browse files
committed
Insert TIMEOUT_VALUE
During the modification, I mistook to modify the Integer.MAX_VALUE and TIME_OUT_VALUE.
1 parent 9ef2a55 commit 071c4b9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

examples/src/main/java/io/kubernetes/client/examples/ExpandedExample.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class ExpandedExample {
4343

4444
private final CoreV1Api corev1Api;
4545
private static final String DEFAULT_NAME_SPACE = "default";
46-
46+
private final static Integer TIME_OUT_VALUE = 180;
4747
/*
4848
For API_SERVER_NAME, you can get the server name as follows.
4949
$ kubectl cluster-info|grep master
@@ -130,9 +130,9 @@ public List<String> getAllNameSpaces() throws ApiException {
130130
null,
131131
Boolean.FALSE,
132132
null,
133-
Integer.SIZE,
133+
0,
134134
null,
135-
Integer.BYTES,
135+
Integer.MAX_VALUE,
136136
Boolean.FALSE);
137137
List<String> list =
138138
listNamespace
@@ -199,9 +199,9 @@ public List<String> getNamespacedPod(String namespace, String label) throws ApiE
199199
null,
200200
Boolean.FALSE,
201201
label,
202-
Integer.SIZE,
202+
Integer.MAX_VALUE,
203203
null,
204-
Integer.BYTES,
204+
TIME_OUT_VALUE,
205205
Boolean.FALSE);
206206
List<String> listPods =
207207
listNamespacedPod
@@ -227,9 +227,9 @@ public List<String> getServices() throws ApiException {
227227
null,
228228
Boolean.FALSE,
229229
null,
230-
Integer.SIZE,
230+
Integer.MAX_VALUE,
231231
null,
232-
Integer.BYTES,
232+
TIME_OUT_VALUE,
233233
Boolean.FALSE);
234234
return listNamespacedService
235235
.getItems()

0 commit comments

Comments
 (0)