diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index c5a2d1f8f5..446367d3f9 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -118,18 +118,12 @@ jobs:
mvn clean install \
-q \
-Dmaven.test.skip=true
- - name: Version 13
+ - name: Examples
run: |
- cd examples/examples-release-13
- mvn clean install
- - name: Version 14
- run: |
- cd examples/examples-release-14
- mvn clean install
- - name: Version 15
- run: |
- cd examples/examples-release-15
- mvn clean install
+ for d in $(find examples* -maxdepth 1 -type d)
+ do
+ mvn clean install -Dmaven.test.skip=true
+ done
codegen:
runs-on: ubuntu-latest
services:
diff --git a/examples/examples-release-13/Dockerfile b/examples/examples-release-16/Dockerfile
similarity index 100%
rename from examples/examples-release-13/Dockerfile
rename to examples/examples-release-16/Dockerfile
diff --git a/examples/examples-release-13/README.md b/examples/examples-release-16/README.md
similarity index 100%
rename from examples/examples-release-13/README.md
rename to examples/examples-release-16/README.md
diff --git a/examples/examples-release-13/createPod.sh b/examples/examples-release-16/createPod.sh
similarity index 100%
rename from examples/examples-release-13/createPod.sh
rename to examples/examples-release-16/createPod.sh
diff --git a/examples/examples-release-13/pom.xml b/examples/examples-release-16/pom.xml
similarity index 92%
rename from examples/examples-release-13/pom.xml
rename to examples/examples-release-16/pom.xml
index 9c5e77867c..e41baf81b6 100644
--- a/examples/examples-release-13/pom.xml
+++ b/examples/examples-release-16/pom.xml
@@ -8,8 +8,8 @@
..
- client-java-examples-release-13
- client-java-examples-release-13
+ client-java-examples-release-16
+ client-java-examples-release-16
@@ -30,27 +30,27 @@
io.kubernetes
client-java-api
- 13.0.1
+ 16.0.0
io.kubernetes
client-java
- 13.0.1
+ 16.0.0
io.kubernetes
client-java-extended
- 13.0.1
+ 16.0.0
io.kubernetes
client-java-spring-integration
- 13.0.1
+ 16.0.0
io.kubernetes
client-java-proto
- 13.0.1
+ 16.0.0
commons-cli
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/AttachExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/AttachExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/AttachExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/AttachExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/CertManagerExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/CertManagerExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/CertManagerExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/CertManagerExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/ControllerExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/ControllerExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/ControllerExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/ControllerExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/CopyExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/CopyExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/CopyExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/CopyExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/Example.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/Example.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/Example.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/Example.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/ExecExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/ExecExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/ExecExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/ExecExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/ExpandedExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/ExpandedExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/ExpandedExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/ExpandedExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/FluentExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/FluentExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/FluentExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/FluentExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/GenericClientExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/GenericClientExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/GenericClientExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/GenericClientExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/InformerExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/InformerExample.java
similarity index 99%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/InformerExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/InformerExample.java
index fb4cf3745e..bae1ef3595 100644
--- a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/InformerExample.java
+++ b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/InformerExample.java
@@ -93,7 +93,7 @@ public void onDelete(V1Node node, boolean deletedFinalStateUnknown) {
V1ObjectMeta metadata = new V1ObjectMeta();
metadata.setName("noxu");
nodeToCreate.setMetadata(metadata);
- V1Node createdNode = coreV1Api.createNode(nodeToCreate, null, null, null);
+ V1Node createdNode = coreV1Api.createNode(nodeToCreate, null, null, null, null);
Thread.sleep(3000);
Lister nodeLister = new Lister(nodeInformer.getIndexer());
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/KubectlExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/KubectlExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/KubectlExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/KubectlExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/LogsExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/LogsExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/LogsExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/LogsExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/MetricsExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/MetricsExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/MetricsExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/MetricsExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/PagerExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/PagerExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/PagerExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/PagerExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/ParseExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/ParseExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/ParseExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/ParseExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/PatchExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/PatchExample.java
similarity index 97%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/PatchExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/PatchExample.java
index 603b663636..8f1d123978 100644
--- a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/PatchExample.java
+++ b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/PatchExample.java
@@ -59,7 +59,7 @@ public static void main(String[] args) throws IOException {
.deserialize(jsonDeploymentStr, V1Deployment.class);
// create a deployment
- V1Deployment deploy1 = api.createNamespacedDeployment("default", body, null, null, null);
+ V1Deployment deploy1 = api.createNamespacedDeployment("default", body, null, null, null, null);
System.out.println("original deployment" + deploy1);
// json-patch a deployment
@@ -75,6 +75,7 @@ public static void main(String[] args) throws IOException {
null,
null, // field-manager is optional
null,
+ null,
null),
V1Patch.PATCH_FORMAT_JSON_PATCH,
api.getApiClient());
@@ -93,6 +94,7 @@ public static void main(String[] args) throws IOException {
null,
null, // field-manager is optional
null,
+ null,
null),
V1Patch.PATCH_FORMAT_STRATEGIC_MERGE_PATCH,
api.getApiClient());
@@ -112,6 +114,7 @@ public static void main(String[] args) throws IOException {
null,
null,
"example-field-manager", // field-manager is required for server-side apply
+ null,
true,
null),
V1Patch.PATCH_FORMAT_APPLY_YAML,
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/PortForwardExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/PortForwardExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/PortForwardExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/PortForwardExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/PromOpExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/PromOpExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/PromOpExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/PromOpExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/PrometheusExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/PrometheusExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/PrometheusExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/PrometheusExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/ProtoExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/ProtoExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/ProtoExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/ProtoExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/WatchExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/WatchExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/WatchExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/WatchExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java
similarity index 100%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/YamlExample.java b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/YamlExample.java
similarity index 98%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/YamlExample.java
rename to examples/examples-release-16/src/main/java/io/kubernetes/client/examples/YamlExample.java
index 84a3324ee2..67b5536ab9 100644
--- a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/YamlExample.java
+++ b/examples/examples-release-16/src/main/java/io/kubernetes/client/examples/YamlExample.java
@@ -90,11 +90,11 @@ public static void main(String[] args) throws IOException, ApiException, ClassNo
// Deployment and StatefulSet is defined in apps/v1, so you should use AppsV1Api instead of
// CoreV1API
CoreV1Api api = new CoreV1Api();
- V1Service createResult = api.createNamespacedService("default", yamlSvc, null, null, null);
+ V1Service createResult = api.createNamespacedService("default", yamlSvc, null, null, null, null);
System.out.println(createResult);
- V1Status deleteResult =
+ V1Service deleteResult =
api.deleteNamespacedService(
yamlSvc.getMetadata().getName(),
"default",
diff --git a/examples/examples-release-13/src/main/resources/application.properties b/examples/examples-release-16/src/main/resources/application.properties
similarity index 100%
rename from examples/examples-release-13/src/main/resources/application.properties
rename to examples/examples-release-16/src/main/resources/application.properties
diff --git a/examples/examples-release-14/src/test/java/io/kubernetes/client/examples/ExampleTest.java b/examples/examples-release-16/src/test/java/io/kubernetes/client/examples/ExampleTest.java
similarity index 100%
rename from examples/examples-release-14/src/test/java/io/kubernetes/client/examples/ExampleTest.java
rename to examples/examples-release-16/src/test/java/io/kubernetes/client/examples/ExampleTest.java
diff --git a/examples/examples-release-13/test-svc.yaml b/examples/examples-release-16/test-svc.yaml
similarity index 100%
rename from examples/examples-release-13/test-svc.yaml
rename to examples/examples-release-16/test-svc.yaml
diff --git a/examples/examples-release-13/test.yaml b/examples/examples-release-16/test.yaml
similarity index 100%
rename from examples/examples-release-13/test.yaml
rename to examples/examples-release-16/test.yaml
diff --git a/examples/examples-release-14/Dockerfile b/examples/examples-release-17/Dockerfile
similarity index 100%
rename from examples/examples-release-14/Dockerfile
rename to examples/examples-release-17/Dockerfile
diff --git a/examples/examples-release-14/README.md b/examples/examples-release-17/README.md
similarity index 100%
rename from examples/examples-release-14/README.md
rename to examples/examples-release-17/README.md
diff --git a/examples/examples-release-14/createPod.sh b/examples/examples-release-17/createPod.sh
similarity index 100%
rename from examples/examples-release-14/createPod.sh
rename to examples/examples-release-17/createPod.sh
diff --git a/examples/examples-release-14/pom.xml b/examples/examples-release-17/pom.xml
similarity index 92%
rename from examples/examples-release-14/pom.xml
rename to examples/examples-release-17/pom.xml
index 05e86a9e18..e7ff766578 100644
--- a/examples/examples-release-14/pom.xml
+++ b/examples/examples-release-17/pom.xml
@@ -8,8 +8,8 @@
..
- client-java-examples-release-14
- client-java-examples-release-14
+ client-java-examples-release-17
+ client-java-examples-release-17
@@ -30,27 +30,27 @@
io.kubernetes
client-java-api
- 14.0.0
+ 17.0.0
io.kubernetes
client-java
- 14.0.0
+ 17.0.0
io.kubernetes
client-java-extended
- 14.0.0
+ 17.0.0
io.kubernetes
client-java-spring-integration
- 14.0.0
+ 17.0.0
io.kubernetes
client-java-proto
- 14.0.0
+ 17.0.0
commons-cli
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/AttachExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/AttachExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/AttachExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/AttachExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/CertManagerExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/CertManagerExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/CertManagerExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/CertManagerExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/ControllerExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ControllerExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/ControllerExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ControllerExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/CopyExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/CopyExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/CopyExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/CopyExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/Example.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/Example.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/Example.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/Example.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/ExecExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ExecExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/ExecExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ExecExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/ExpandedExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ExpandedExample.java
similarity index 99%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/ExpandedExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ExpandedExample.java
index 0d3c846138..261323c512 100644
--- a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/ExpandedExample.java
+++ b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ExpandedExample.java
@@ -240,7 +240,7 @@ public static void scaleDeployment(String deploymentName, int numberOfReplicas)
V1DeploymentSpec newSpec = deploy.getSpec().replicas(numberOfReplicas);
V1Deployment newDeploy = deploy.spec(newSpec);
appsV1Api.replaceNamespacedDeployment(
- deploymentName, DEFAULT_NAME_SPACE, newDeploy, null, null, null);
+ deploymentName, DEFAULT_NAME_SPACE, newDeploy, null, null, null, null);
} catch (ApiException ex) {
LOGGER.warn("Scale the pod failed for Deployment:" + deploymentName, ex);
}
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/FluentExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/FluentExample.java
similarity index 94%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/FluentExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/FluentExample.java
index 5eac0de017..8e48cc51b3 100644
--- a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/FluentExample.java
+++ b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/FluentExample.java
@@ -54,7 +54,7 @@ public static void main(String[] args) throws IOException, ApiException {
.endSpec()
.build();
- api.createNamespacedPod("default", pod, null, null, null);
+ api.createNamespacedPod("default", pod, null, null, null, null);
V1Pod pod2 =
new V1Pod()
@@ -63,7 +63,7 @@ public static void main(String[] args) throws IOException, ApiException {
new V1PodSpec()
.containers(Arrays.asList(new V1Container().name("www").image("nginx"))));
- api.createNamespacedPod("default", pod2, null, null, null);
+ api.createNamespacedPod("default", pod2, null, null, null, null);
V1PodList list =
api.listNamespacedPod(
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/GenericClientExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/GenericClientExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/GenericClientExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/GenericClientExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/InformerExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/InformerExample.java
similarity index 99%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/InformerExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/InformerExample.java
index fb4cf3745e..bae1ef3595 100644
--- a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/InformerExample.java
+++ b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/InformerExample.java
@@ -93,7 +93,7 @@ public void onDelete(V1Node node, boolean deletedFinalStateUnknown) {
V1ObjectMeta metadata = new V1ObjectMeta();
metadata.setName("noxu");
nodeToCreate.setMetadata(metadata);
- V1Node createdNode = coreV1Api.createNode(nodeToCreate, null, null, null);
+ V1Node createdNode = coreV1Api.createNode(nodeToCreate, null, null, null, null);
Thread.sleep(3000);
Lister nodeLister = new Lister(nodeInformer.getIndexer());
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/KubectlExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/KubectlExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/KubectlExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/KubectlExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/LogsExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/LogsExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/LogsExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/LogsExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/MetricsExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/MetricsExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/MetricsExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/MetricsExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/PagerExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PagerExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/PagerExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PagerExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/ParseExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ParseExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/ParseExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ParseExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/PatchExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PatchExample.java
similarity index 97%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/PatchExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PatchExample.java
index 603b663636..3f2457a47a 100644
--- a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/PatchExample.java
+++ b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PatchExample.java
@@ -59,7 +59,7 @@ public static void main(String[] args) throws IOException {
.deserialize(jsonDeploymentStr, V1Deployment.class);
// create a deployment
- V1Deployment deploy1 = api.createNamespacedDeployment("default", body, null, null, null);
+ V1Deployment deploy1 = api.createNamespacedDeployment("default", body, null, null, null, null);
System.out.println("original deployment" + deploy1);
// json-patch a deployment
@@ -73,6 +73,7 @@ public static void main(String[] args) throws IOException {
new V1Patch(jsonPatchStr),
null,
null,
+ null,
null, // field-manager is optional
null,
null),
@@ -91,6 +92,7 @@ public static void main(String[] args) throws IOException {
new V1Patch(strategicMergePatchStr),
null,
null,
+ null,
null, // field-manager is optional
null,
null),
@@ -112,8 +114,9 @@ public static void main(String[] args) throws IOException {
null,
null,
"example-field-manager", // field-manager is required for server-side apply
+ null,
true,
- null),
+ null),
V1Patch.PATCH_FORMAT_APPLY_YAML,
api.getApiClient());
System.out.println("application/apply-patch+yaml deployment" + deploy4);
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/PortForwardExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PortForwardExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/PortForwardExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PortForwardExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/PromOpExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PromOpExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/PromOpExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PromOpExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/PrometheusExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PrometheusExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/PrometheusExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PrometheusExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/ProtoExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ProtoExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/ProtoExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ProtoExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/WatchExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/WatchExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/WatchExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/WatchExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java
similarity index 100%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java
diff --git a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/YamlExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/YamlExample.java
similarity index 98%
rename from examples/examples-release-14/src/main/java/io/kubernetes/client/examples/YamlExample.java
rename to examples/examples-release-17/src/main/java/io/kubernetes/client/examples/YamlExample.java
index 84a3324ee2..67b5536ab9 100644
--- a/examples/examples-release-14/src/main/java/io/kubernetes/client/examples/YamlExample.java
+++ b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/YamlExample.java
@@ -90,11 +90,11 @@ public static void main(String[] args) throws IOException, ApiException, ClassNo
// Deployment and StatefulSet is defined in apps/v1, so you should use AppsV1Api instead of
// CoreV1API
CoreV1Api api = new CoreV1Api();
- V1Service createResult = api.createNamespacedService("default", yamlSvc, null, null, null);
+ V1Service createResult = api.createNamespacedService("default", yamlSvc, null, null, null, null);
System.out.println(createResult);
- V1Status deleteResult =
+ V1Service deleteResult =
api.deleteNamespacedService(
yamlSvc.getMetadata().getName(),
"default",
diff --git a/examples/examples-release-14/src/main/resources/application.properties b/examples/examples-release-17/src/main/resources/application.properties
similarity index 100%
rename from examples/examples-release-14/src/main/resources/application.properties
rename to examples/examples-release-17/src/main/resources/application.properties
diff --git a/examples/examples-release-15/src/test/java/io/kubernetes/client/examples/ExampleTest.java b/examples/examples-release-17/src/test/java/io/kubernetes/client/examples/ExampleTest.java
similarity index 100%
rename from examples/examples-release-15/src/test/java/io/kubernetes/client/examples/ExampleTest.java
rename to examples/examples-release-17/src/test/java/io/kubernetes/client/examples/ExampleTest.java
diff --git a/examples/examples-release-14/test-svc.yaml b/examples/examples-release-17/test-svc.yaml
similarity index 100%
rename from examples/examples-release-14/test-svc.yaml
rename to examples/examples-release-17/test-svc.yaml
diff --git a/examples/examples-release-14/test.yaml b/examples/examples-release-17/test.yaml
similarity index 100%
rename from examples/examples-release-14/test.yaml
rename to examples/examples-release-17/test.yaml
diff --git a/examples/examples-release-15/Dockerfile b/examples/examples-release-18/Dockerfile
similarity index 100%
rename from examples/examples-release-15/Dockerfile
rename to examples/examples-release-18/Dockerfile
diff --git a/examples/examples-release-15/README.md b/examples/examples-release-18/README.md
similarity index 100%
rename from examples/examples-release-15/README.md
rename to examples/examples-release-18/README.md
diff --git a/examples/examples-release-15/createPod.sh b/examples/examples-release-18/createPod.sh
similarity index 100%
rename from examples/examples-release-15/createPod.sh
rename to examples/examples-release-18/createPod.sh
diff --git a/examples/examples-release-15/pom.xml b/examples/examples-release-18/pom.xml
similarity index 96%
rename from examples/examples-release-15/pom.xml
rename to examples/examples-release-18/pom.xml
index b53a130863..a2bb4d2018 100644
--- a/examples/examples-release-15/pom.xml
+++ b/examples/examples-release-18/pom.xml
@@ -8,8 +8,8 @@
..
- client-java-examples-release-15
- client-java-examples-release-15
+ client-java-examples-release-18
+ client-java-examples-release-18
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/AttachExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/AttachExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/AttachExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/AttachExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/CertManagerExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/CertManagerExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/CertManagerExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/CertManagerExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/ControllerExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ControllerExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/ControllerExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ControllerExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/CopyExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/CopyExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/CopyExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/CopyExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/DeployRolloutRestartExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/DeployRolloutRestartExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/DeployRolloutRestartExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/DeployRolloutRestartExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/Example.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/Example.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/Example.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/Example.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/ExecExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ExecExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/ExecExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ExecExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/ExpandedExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ExpandedExample.java
similarity index 99%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/ExpandedExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ExpandedExample.java
index 8a42363c42..e2b9c22177 100644
--- a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/ExpandedExample.java
+++ b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ExpandedExample.java
@@ -240,7 +240,7 @@ public static void scaleDeployment(String deploymentName, int numberOfReplicas)
V1DeploymentSpec newSpec = deploy.getSpec().replicas(numberOfReplicas);
V1Deployment newDeploy = deploy.spec(newSpec);
appsV1Api.replaceNamespacedDeployment(
- deploymentName, DEFAULT_NAME_SPACE, newDeploy, null, null, null);
+ deploymentName, DEFAULT_NAME_SPACE, newDeploy, null, null, null, null);
} catch (ApiException ex) {
LOGGER.warn("Scale the pod failed for Deployment:" + deploymentName, ex);
}
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/FluentExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/FluentExample.java
similarity index 94%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/FluentExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/FluentExample.java
index 5eac0de017..8e48cc51b3 100644
--- a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/FluentExample.java
+++ b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/FluentExample.java
@@ -54,7 +54,7 @@ public static void main(String[] args) throws IOException, ApiException {
.endSpec()
.build();
- api.createNamespacedPod("default", pod, null, null, null);
+ api.createNamespacedPod("default", pod, null, null, null, null);
V1Pod pod2 =
new V1Pod()
@@ -63,7 +63,7 @@ public static void main(String[] args) throws IOException, ApiException {
new V1PodSpec()
.containers(Arrays.asList(new V1Container().name("www").image("nginx"))));
- api.createNamespacedPod("default", pod2, null, null, null);
+ api.createNamespacedPod("default", pod2, null, null, null, null);
V1PodList list =
api.listNamespacedPod(
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/GenericClientExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/GenericClientExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/GenericClientExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/GenericClientExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/InformerExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/InformerExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/InformerExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/InformerExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/KubectlExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/KubectlExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/KubectlExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/KubectlExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/LogsExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/LogsExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/LogsExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/LogsExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/MetricsExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/MetricsExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/MetricsExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/MetricsExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/PagerExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PagerExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/PagerExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PagerExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/ParseExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ParseExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/ParseExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ParseExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/PatchExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PatchExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/PatchExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PatchExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/PortForwardExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PortForwardExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/PortForwardExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PortForwardExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/PromOpExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PromOpExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/PromOpExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PromOpExample.java
diff --git a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/PrometheusExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PrometheusExample.java
similarity index 96%
rename from examples/examples-release-13/src/main/java/io/kubernetes/client/examples/PrometheusExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PrometheusExample.java
index 3d857e5166..d2afb10142 100644
--- a/examples/examples-release-13/src/main/java/io/kubernetes/client/examples/PrometheusExample.java
+++ b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PrometheusExample.java
@@ -50,7 +50,7 @@ public static void main(String[] args) throws IOException, ApiException {
api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null);
// A request that should return 404
try {
- V1Pod pod = api.readNamespacedPod("foo", "bar", null, null, null);
+ V1Pod pod = api.readNamespacedPod("foo", "bar", null);
} catch (ApiException ex) {
if (ex.getCode() != 404) {
throw ex;
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/ProtoExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ProtoExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/ProtoExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ProtoExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/WatchExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/WatchExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/WatchExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/WatchExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java
diff --git a/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/YamlExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/YamlExample.java
similarity index 100%
rename from examples/examples-release-15/src/main/java/io/kubernetes/client/examples/YamlExample.java
rename to examples/examples-release-18/src/main/java/io/kubernetes/client/examples/YamlExample.java
diff --git a/examples/examples-release-15/src/main/resources/application.properties b/examples/examples-release-18/src/main/resources/application.properties
similarity index 100%
rename from examples/examples-release-15/src/main/resources/application.properties
rename to examples/examples-release-18/src/main/resources/application.properties
diff --git a/examples/examples-release-13/src/test/java/io/kubernetes/client/examples/ExampleTest.java b/examples/examples-release-18/src/test/java/io/kubernetes/client/examples/ExampleTest.java
similarity index 96%
rename from examples/examples-release-13/src/test/java/io/kubernetes/client/examples/ExampleTest.java
rename to examples/examples-release-18/src/test/java/io/kubernetes/client/examples/ExampleTest.java
index 8540ce3af1..df2f168e41 100644
--- a/examples/examples-release-13/src/test/java/io/kubernetes/client/examples/ExampleTest.java
+++ b/examples/examples-release-18/src/test/java/io/kubernetes/client/examples/ExampleTest.java
@@ -49,7 +49,7 @@ public void exactUrlOnly() throws IOException, ApiException {
.withBody(client.getJSON().serialize(ns1))));
CoreV1Api api = new CoreV1Api();
- V1Namespace ns2 = api.readNamespace("name", null, null, null);
+ V1Namespace ns2 = api.readNamespace("name", null);
assertEquals(ns1, ns2);
}
}
diff --git a/examples/examples-release-15/test-svc.yaml b/examples/examples-release-18/test-svc.yaml
similarity index 100%
rename from examples/examples-release-15/test-svc.yaml
rename to examples/examples-release-18/test-svc.yaml
diff --git a/examples/examples-release-15/test.yaml b/examples/examples-release-18/test.yaml
similarity index 100%
rename from examples/examples-release-15/test.yaml
rename to examples/examples-release-18/test.yaml
diff --git a/examples/pom.xml b/examples/pom.xml
index 6dedd2063f..19d4695d8f 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -15,9 +15,9 @@
client-java-examples-parent
- examples-release-13
- examples-release-14
- examples-release-15
+ examples-release-16
+ examples-release-17
+ examples-release-18