Skip to content

Commit fb57d24

Browse files
authored
Merge pull request #2800 from yue9944882/example-19
Cut a new example module for 19 client major version
2 parents a344e8c + bf1cb76 commit fb57d24

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+3019
-20
lines changed

examples/examples-release-18/pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,27 @@
3030
<dependency>
3131
<groupId>io.kubernetes</groupId>
3232
<artifactId>client-java-api</artifactId>
33-
<version>${project.version}</version>
33+
<version>18.0.1</version>
3434
</dependency>
3535
<dependency>
3636
<groupId>io.kubernetes</groupId>
3737
<artifactId>client-java</artifactId>
38-
<version>${project.version}</version>
38+
<version>18.0.1</version>
3939
</dependency>
4040
<dependency>
4141
<groupId>io.kubernetes</groupId>
4242
<artifactId>client-java-extended</artifactId>
43-
<version>${project.version}</version>
43+
<version>18.0.1</version>
4444
</dependency>
4545
<dependency>
4646
<groupId>io.kubernetes</groupId>
4747
<artifactId>client-java-spring-integration</artifactId>
48-
<version>${project.version}</version>
48+
<version>18.0.1</version>
4949
</dependency>
5050
<dependency>
5151
<groupId>io.kubernetes</groupId>
5252
<artifactId>client-java-proto</artifactId>
53-
<version>${project.version}</version>
53+
<version>18.0.1</version>
5454
</dependency>
5555
<dependency>
5656
<groupId>commons-cli</groupId>

examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ControllerExample.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public static void main(String[] args) throws IOException {
6565
null,
6666
params.resourceVersion,
6767
null,
68-
null,
6968
params.timeoutSeconds,
7069
params.watch,
7170
null);

examples/examples-release-18/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, 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/examples-release-18/src/main/java/io/kubernetes/client/examples/ExpandedExample.java

Lines changed: 2 additions & 5 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-
null, null, null, null, null, null, null, null, null, null, null);
105+
null, null, null, null, null, null, null, null, null, null);
106106
List<String> list =
107107
listNamespace.getItems().stream()
108108
.map(v1Namespace -> v1Namespace.getMetadata().getName())
@@ -119,7 +119,7 @@ public static List<String> getAllNameSpaces() throws ApiException {
119119
public static List<String> getPods() throws ApiException {
120120
V1PodList v1podList =
121121
COREV1_API.listPodForAllNamespaces(
122-
null, null, null, null, null, null, null, null, null, null, null);
122+
null, null, null, null, null, null, null, null, null, null);
123123
List<String> podList =
124124
v1podList.getItems().stream()
125125
.map(v1Pod -> v1Pod.getMetadata().getName())
@@ -168,7 +168,6 @@ public static List<String> getNamespacedPod(String namespace, String label) thro
168168
null,
169169
null,
170170
null,
171-
null,
172171
TIME_OUT_VALUE,
173172
Boolean.FALSE);
174173
List<String> listPods =
@@ -196,7 +195,6 @@ public static List<String> getServices() throws ApiException {
196195
null,
197196
null,
198197
null,
199-
null,
200198
TIME_OUT_VALUE,
201199
Boolean.FALSE);
202200
return listNamespacedService.getItems().stream()
@@ -227,7 +225,6 @@ public static void scaleDeployment(String deploymentName, int numberOfReplicas)
227225
null,
228226
null,
229227
null,
230-
null,
231228
Boolean.FALSE);
232229

233230
List<V1Deployment> appsV1DeploymentItems = listNamespacedDeployment.getItems();

examples/examples-release-18/src/main/java/io/kubernetes/client/examples/FluentExample.java

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

6868
V1PodList list =
6969
api.listNamespacedPod(
70-
"default", null, null, null, null, null, null, null, null, null, null, null);
70+
"default", null, null, null, null, null, null, null, null, null, null);
7171
for (V1Pod item : list.getItems()) {
7272
System.out.println(item.getMetadata().getName());
7373
}

examples/examples-release-18/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, 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/examples-release-18/src/main/java/io/kubernetes/client/examples/InformerExample.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ public static void main(String[] args) throws Exception {
6060
null,
6161
params.resourceVersion,
6262
null,
63-
null,
6463
params.timeoutSeconds,
6564
params.watch,
6665
null);

examples/examples-release-18/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, 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/examples-release-18/src/main/java/io/kubernetes/client/examples/LogsExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static void main(String[] args) throws IOException, ApiException, Interru
4141
V1Pod pod =
4242
coreApi
4343
.listNamespacedPod(
44-
"default", "false", null, null, null, null, null, null, null, null, null, null)
44+
"default", "false", null, null, null, null, null, null, null, null, null)
4545
.getItems()
4646
.get(0);
4747

examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PagerExample.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public static void main(String[] args) throws IOException {
5454
param.getLimit(),
5555
null,
5656
null,
57-
null,
5857
1,
5958
null,
6059
null);

0 commit comments

Comments
 (0)