Skip to content

Commit 29b7da4

Browse files
authored
Merge pull request #567 from yue9944882/release-1.14-model
Update openapi metadata from k/k 1.14 branch
2 parents e532b43 + eda44fa commit 29b7da4

File tree

892 files changed

+106323
-80233
lines changed

Some content is hidden

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

892 files changed

+106323
-80233
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ public static void main(String[] args) throws IOException, ApiException {
3535
Configuration.setDefaultApiClient(client);
3636

3737
CoreV1Api api = new CoreV1Api();
38-
V1PodList list =
39-
api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null);
38+
V1PodList list = api.listPodForAllNamespaces(null, null, null, null, null, null, null, null);
4039
for (V1Pod item : list.getItems()) {
4140
System.out.println(item.getMetadata().getName());
4241
}

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static void main(String[] args) {
103103
public static List<String> getAllNameSpaces() throws ApiException {
104104
V1NamespaceList listNamespace =
105105
COREV1_API.listNamespace(
106-
null, "true", null, null, null, 0, null, Integer.MAX_VALUE, Boolean.FALSE);
106+
"true", null, null, null, 0, null, Integer.MAX_VALUE, Boolean.FALSE);
107107
List<String> list =
108108
listNamespace
109109
.getItems()
@@ -121,7 +121,7 @@ public static List<String> getAllNameSpaces() throws ApiException {
121121
*/
122122
public static List<String> getPods() throws ApiException {
123123
V1PodList v1podList =
124-
COREV1_API.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null);
124+
COREV1_API.listPodForAllNamespaces(null, null, null, null, null, null, null, null);
125125
List<String> podList =
126126
v1podList
127127
.getItems()
@@ -167,7 +167,6 @@ public static List<String> getNamespacedPod(String namespace, String label) thro
167167
null,
168168
null,
169169
null,
170-
null,
171170
label,
172171
Integer.MAX_VALUE,
173172
null,
@@ -196,7 +195,6 @@ public static List<String> getServices() throws ApiException {
196195
null,
197196
null,
198197
null,
199-
null,
200198
Integer.MAX_VALUE,
201199
null,
202200
TIME_OUT_VALUE,
@@ -221,7 +219,7 @@ public static void scaleDeployment(String deploymentName, int numberOfReplicas)
221219
extensionV1Api.setApiClient(COREV1_API.getApiClient());
222220
ExtensionsV1beta1DeploymentList listNamespacedDeployment =
223221
extensionV1Api.listNamespacedDeployment(
224-
DEFAULT_NAME_SPACE, null, null, null, null, null, null, null, null, Boolean.FALSE);
222+
DEFAULT_NAME_SPACE, null, null, null, null, null, null, null, Boolean.FALSE);
225223

226224
List<ExtensionsV1beta1Deployment> extensionsV1beta1DeploymentItems =
227225
listNamespacedDeployment.getItems();
@@ -238,7 +236,7 @@ public static void scaleDeployment(String deploymentName, int numberOfReplicas)
238236
ExtensionsV1beta1DeploymentSpec newSpec = deploy.getSpec().replicas(numberOfReplicas);
239237
ExtensionsV1beta1Deployment newDeploy = deploy.spec(newSpec);
240238
extensionV1Api.replaceNamespacedDeployment(
241-
deploymentName, DEFAULT_NAME_SPACE, newDeploy, null, null);
239+
deploymentName, DEFAULT_NAME_SPACE, newDeploy, null, null, null);
242240
} catch (ApiException ex) {
243241
LOGGER.warn("Scale the pod failed for Deployment:" + deploymentName, ex);
244242
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ 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("default", null, null, null, null, null, null, null, null);
7070
for (V1Pod item : list.getItems()) {
7171
System.out.println(item.getMetadata().getName());
7272
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public static void main(String[] args) throws Exception {
4242
null,
4343
null,
4444
null,
45-
null,
4645
params.resourceVersion,
4746
params.timeoutSeconds,
4847
params.watch,

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

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

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public static void main(String[] args) throws IOException {
4343
(Pager.PagerParams param) -> {
4444
try {
4545
return api.listNamespaceCall(
46-
null,
4746
null,
4847
param.getContinueToken(),
4948
null,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ public ExtensionsV1beta1Deployment createDeployment(
6767
String namespace, ExtensionsV1beta1Deployment body, String pretty) throws ApiException {
6868
ExtensionsV1beta1Api api = new ExtensionsV1beta1Api();
6969
ExtensionsV1beta1Deployment deploy =
70-
api.createNamespacedDeployment(namespace, body, false, pretty, "false");
70+
api.createNamespacedDeployment(namespace, body, pretty, null, null);
7171
return deploy;
7272
}
7373

7474
public ExtensionsV1beta1Deployment PatchDeployment(
7575
String deployName, String namespace, Object body, String pretty) throws ApiException {
7676
ExtensionsV1beta1Api api = new ExtensionsV1beta1Api();
7777
ExtensionsV1beta1Deployment deploy =
78-
api.patchNamespacedDeployment(deployName, namespace, body, pretty, "false");
78+
api.patchNamespacedDeployment(deployName, namespace, body, pretty, null, null, null);
7979
return deploy;
8080
}
8181

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ public static void main(String[] args) throws IOException, ApiException {
3535
Watch<V1Namespace> watch =
3636
Watch.createWatch(
3737
client,
38-
api.listNamespaceCall(
39-
null, null, null, null, null, 5, null, null, Boolean.TRUE, null, null),
38+
api.listNamespaceCall(null, null, null, null, 5, null, null, Boolean.TRUE, null, null),
4039
new TypeToken<Watch.Response<V1Namespace>>() {}.getType());
4140

4241
try {

extended/src/test/java/io/kubernetes/client/extended/pager/PagerTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ public void testPaginationForNamespaceListWithSuccessThreadSafely() throws IOExc
9191
(Pager.PagerParams param) -> {
9292
try {
9393
return api.listNamespaceCall(
94-
null,
9594
null,
9695
param.getContinueToken(),
9796
null,
@@ -153,7 +152,6 @@ public void testPaginationForNamespaceListWithBadTokenFailure() throws IOExcepti
153152
(Pager.PagerParams param) -> {
154153
try {
155154
return api.listNamespaceCall(
156-
null,
157155
null,
158156
param.getContinueToken(),
159157
null,
@@ -205,7 +203,6 @@ public void testPaginationForNamespaceListWithFieldSelectorFailure() throws IOEx
205203
(Pager.PagerParams param) -> {
206204
try {
207205
return api.listNamespaceCall(
208-
null,
209206
null,
210207
param.getContinueToken(),
211208
"metadata.name=default",

kubernetes/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ hs_err_pid*
1414
# build files
1515
**/target
1616
target
17+
gradle/**

0 commit comments

Comments
 (0)