Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit eda44fa

Browse filesBrowse files
committed
fixes removed openapi parameter definition
1 parent 0f8e1c1 commit eda44fa
Copy full SHA for eda44fa

File tree

Expand file treeCollapse file tree

11 files changed

+10
-24
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

11 files changed

+10
-24
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: examples/src/main/java/io/kubernetes/client/examples/Example.java
+1-2Lines 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
}
Collapse file

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

Copy file name to clipboardExpand all lines: examples/src/main/java/io/kubernetes/client/examples/ExpandedExample.java
+4-6Lines 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
}
Collapse file

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

Copy file name to clipboardExpand all lines: examples/src/main/java/io/kubernetes/client/examples/FluentExample.java
+1-1Lines 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
}
Collapse file

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

Copy file name to clipboardExpand all lines: examples/src/main/java/io/kubernetes/client/examples/InformerExample.java
-1Lines 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,
Collapse file

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

Copy file name to clipboardExpand all lines: examples/src/main/java/io/kubernetes/client/examples/LogsExample.java
+1-1Lines 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

Collapse file

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

Copy file name to clipboardExpand all lines: examples/src/main/java/io/kubernetes/client/examples/PagerExample.java
-1Lines 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,
Collapse file

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

Copy file name to clipboardExpand all lines: examples/src/main/java/io/kubernetes/client/examples/PatchExample.java
+2-2Lines 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

Collapse file

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

Copy file name to clipboardExpand all lines: examples/src/main/java/io/kubernetes/client/examples/WatchExample.java
+1-2Lines 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 {
Collapse file

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

Copy file name to clipboardExpand all lines: extended/src/test/java/io/kubernetes/client/extended/pager/PagerTest.java
-3Lines 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",
Collapse file

‎util/src/test/java/io/kubernetes/client/informer/SharedInformerFactoryTest.java‎

Copy file name to clipboardExpand all lines: util/src/test/java/io/kubernetes/client/informer/SharedInformerFactoryTest.java
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public void shutdownInformerFactoryInstantlyAfterStarting() {
2121
null,
2222
null,
2323
null,
24-
null,
2524
params.resourceVersion,
2625
params.timeoutSeconds,
2726
params.watch,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.