Skip to content

Commit 51d67b4

Browse files
committed
fixes compiling
1 parent e947ab9 commit 51d67b4

33 files changed

+167
-132
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public static void main(String[] args) throws IOException {
6464
null,
6565
null,
6666
params.resourceVersion,
67+
null,
6768
params.timeoutSeconds,
6869
params.watch,
6970
null);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static void main(String[] args) throws IOException, ApiException {
3636

3737
CoreV1Api api = new CoreV1Api();
3838
V1PodList list =
39-
api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null);
39+
api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null);
4040
for (V1Pod item : list.getItems()) {
4141
System.out.println(item.getMetadata().getName());
4242
}

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

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public static void main(String[] args) {
102102
public static List<String> getAllNameSpaces() throws ApiException {
103103
V1NamespaceList listNamespace =
104104
COREV1_API.listNamespace(
105-
"true", null, null, null, null, 0, null, Integer.MAX_VALUE, Boolean.FALSE);
105+
"true", null, null, null, null, 0, null, null, Integer.MAX_VALUE, Boolean.FALSE);
106106
List<String> list =
107107
listNamespace.getItems().stream()
108108
.map(v1Namespace -> v1Namespace.getMetadata().getName())
@@ -118,7 +118,8 @@ public static List<String> getAllNameSpaces() throws ApiException {
118118
*/
119119
public static List<String> getPods() throws ApiException {
120120
V1PodList v1podList =
121-
COREV1_API.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null);
121+
COREV1_API.listPodForAllNamespaces(
122+
null, null, null, null, null, null, null, null, null, null);
122123
List<String> podList =
123124
v1podList.getItems().stream()
124125
.map(v1Pod -> v1Pod.getMetadata().getName())
@@ -166,6 +167,7 @@ public static List<String> getNamespacedPod(String namespace, String label) thro
166167
label,
167168
Integer.MAX_VALUE,
168169
null,
170+
null,
169171
TIME_OUT_VALUE,
170172
Boolean.FALSE);
171173
List<String> listPods =
@@ -192,6 +194,7 @@ public static List<String> getServices() throws ApiException {
192194
null,
193195
Integer.MAX_VALUE,
194196
null,
197+
null,
195198
TIME_OUT_VALUE,
196199
Boolean.FALSE);
197200
return listNamespacedService.getItems().stream()
@@ -212,7 +215,17 @@ public static void scaleDeployment(String deploymentName, int numberOfReplicas)
212215
appsV1Api.setApiClient(COREV1_API.getApiClient());
213216
V1DeploymentList listNamespacedDeployment =
214217
appsV1Api.listNamespacedDeployment(
215-
DEFAULT_NAME_SPACE, null, null, null, null, null, null, null, null, Boolean.FALSE);
218+
DEFAULT_NAME_SPACE,
219+
null,
220+
null,
221+
null,
222+
null,
223+
null,
224+
null,
225+
null,
226+
null,
227+
null,
228+
Boolean.FALSE);
216229

217230
List<V1Deployment> appsV1DeploymentItems = listNamespacedDeployment.getItems();
218231
Optional<V1Deployment> findedDeployment =

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ public static void main(String[] args) throws IOException, ApiException {
6666
api.createNamespacedPod("default", pod2, null, null, null);
6767

6868
V1PodList list =
69-
api.listNamespacedPod("default", null, null, null, null, null, null, null, null, null);
69+
api.listNamespacedPod(
70+
"default", null, null, null, null, null, null, null, null, null, null);
7071
for (V1Pod item : list.getItems()) {
7172
System.out.println(item.getMetadata().getName());
7273
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static void main(String[] args) throws IOException, ApiException {
5050

5151
// invokes the CoreV1Api client
5252
V1PodList list =
53-
api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null);
53+
api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null);
5454
for (V1Pod item : list.getItems()) {
5555
System.out.println(item.getMetadata().getName());
5656
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public static void main(String[] args) throws Exception {
5353
null,
5454
null,
5555
params.resourceVersion,
56+
null,
5657
params.timeoutSeconds,
5758
params.watch,
5859
null);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static void main(String[] args) throws IOException, ApiException {
5050

5151
// invokes the CoreV1Api client
5252
V1PodList list =
53-
api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null);
53+
api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null);
5454
for (V1Pod item : list.getItems()) {
5555
System.out.println(item.getMetadata().getName());
5656
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public static void main(String[] args) throws IOException, ApiException, Interru
4040
PodLogs logs = new PodLogs();
4141
V1Pod pod =
4242
coreApi
43-
.listNamespacedPod("default", "false", null, null, null, null, null, null, null, null)
43+
.listNamespacedPod(
44+
"default", "false", null, null, null, null, null, null, null, null, null)
4445
.getItems()
4546
.get(0);
4647

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public static void main(String[] args) throws IOException {
5353
null,
5454
param.getLimit(),
5555
null,
56+
null,
5657
1,
5758
null,
5859
null);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static void main(String[] args) throws IOException, ApiException {
4747
while (true) {
4848
// A request that should return 200
4949
V1PodList list =
50-
api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null);
50+
api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null);
5151
// A request that should return 404
5252
try {
5353
V1Pod pod = api.readNamespacedPod("foo", "bar", null, null, null);

0 commit comments

Comments
 (0)