Skip to content

Commit 5ecfc85

Browse files
committed
style: fix formatting
1 parent f927cf0 commit 5ecfc85

2 files changed

Lines changed: 19 additions & 19 deletions

File tree

util/src/main/java/io/kubernetes/client/util/ResourceClient.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,28 +43,28 @@
4343
* <p>Example usage:
4444
* <pre>{@code
4545
* // Create a client for pods
46-
* ResourceClient<V1Pod, V1PodList> pods =
46+
* ResourceClient<V1Pod, V1PodList> pods =
4747
* ResourceClient.create(apiClient, V1Pod.class, V1PodList.class, "", "v1", "pods");
48-
*
48+
*
4949
* // Get a pod in a namespace
5050
* V1Pod pod = pods.inNamespace("default").withName("my-pod").get();
51-
*
51+
*
5252
* // List all pods with a label
5353
* V1PodList podList = pods.inNamespace("default")
5454
* .withLabel("app", "myapp")
5555
* .list();
56-
*
56+
*
5757
* // Create or replace a pod
5858
* V1Pod created = pods.inNamespace("default").createOrReplace(myPod);
59-
*
59+
*
6060
* // Delete a pod
6161
* pods.inNamespace("default").withName("my-pod").delete();
62-
*
62+
*
6363
* // Wait until ready
6464
* V1Pod ready = pods.inNamespace("default")
6565
* .withName("my-pod")
6666
* .waitUntilReady(Duration.ofMinutes(5));
67-
*
67+
*
6868
* // Edit a resource
6969
* V1Pod edited = pods.inNamespace("default")
7070
* .withName("my-pod")
@@ -536,8 +536,8 @@ public void waitUntilDeleted(Duration timeout)
536536
final String resourceName = name;
537537
WaitUtils.waitUntilDeleted(
538538
() -> {
539-
KubernetesApiResponse<ApiType> response = ns != null
540-
? api.get(ns, resourceName)
539+
KubernetesApiResponse<ApiType> response = ns != null
540+
? api.get(ns, resourceName)
541541
: api.get(resourceName);
542542
return response.isSuccess() ? response.getObject() : null;
543543
},
@@ -557,8 +557,8 @@ public CompletableFuture<ApiType> waitUntilReadyAsync(Duration timeout) {
557557
final String resourceName = name;
558558
return WaitUtils.waitUntilReadyAsync(
559559
() -> {
560-
KubernetesApiResponse<ApiType> response = ns != null
561-
? api.get(ns, resourceName)
560+
KubernetesApiResponse<ApiType> response = ns != null
561+
? api.get(ns, resourceName)
562562
: api.get(resourceName);
563563
return response.isSuccess() ? response.getObject() : null;
564564
},
@@ -580,8 +580,8 @@ public CompletableFuture<ApiType> waitUntilConditionAsync(Predicate<ApiType> con
580580
final String resourceName = name;
581581
return WaitUtils.waitUntilConditionAsync(
582582
() -> {
583-
KubernetesApiResponse<ApiType> response = ns != null
584-
? api.get(ns, resourceName)
583+
KubernetesApiResponse<ApiType> response = ns != null
584+
? api.get(ns, resourceName)
585585
: api.get(resourceName);
586586
return response.isSuccess() ? response.getObject() : null;
587587
},

util/src/test/java/io/kubernetes/client/util/ResourceClientTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ void create_clusterScopedResource_createsResource() throws ApiException {
209209
void update_namespacedPod_updatesResource() throws ApiException {
210210
V1Pod pod = createPod("existing-pod", "default");
211211
pod.getMetadata().setResourceVersion("12345");
212-
212+
213213
apiServer.stubFor(
214214
put(urlPathEqualTo("/api/v1/namespaces/default/pods/existing-pod"))
215215
.willReturn(aResponse()
@@ -322,15 +322,15 @@ void fluentInterface_chainedCalls_preservesState() throws ApiException {
322322
@Test
323323
void inNamespace_returnsNewClient() {
324324
ResourceClient<V1Pod, V1PodList> namespacedClient = podClient.inNamespace("my-namespace");
325-
325+
326326
assertThat(namespacedClient).isNotNull();
327327
assertThat(namespacedClient).isNotSameAs(podClient);
328328
}
329329

330330
@Test
331331
void withName_returnsNewClient() {
332332
ResourceClient<V1Pod, V1PodList> namedClient = podClient.withName("my-pod");
333-
333+
334334
assertThat(namedClient).isNotNull();
335335
assertThat(namedClient).isNotSameAs(podClient);
336336
}
@@ -364,7 +364,7 @@ void get_serverError_throwsApiException() {
364364
.withStatus(500)
365365
.withBody("{\"message\": \"Internal Server Error\"}")));
366366

367-
assertThatThrownBy(() ->
367+
assertThatThrownBy(() ->
368368
podClient.inNamespace("default").withName("error-pod").get())
369369
.isInstanceOf(ApiException.class);
370370
}
@@ -378,7 +378,7 @@ void create_conflict_throwsApiException() {
378378
.withStatus(409)
379379
.withBody("{\"message\": \"AlreadyExists\"}")));
380380

381-
assertThatThrownBy(() ->
381+
assertThatThrownBy(() ->
382382
podClient.inNamespace("default").create(pod))
383383
.isInstanceOf(ApiException.class);
384384
}
@@ -389,7 +389,7 @@ void create_conflict_throwsApiException() {
389389
void createOrReplace_existingResource_updatesResource() throws ApiException {
390390
V1Pod existingPod = createPod("existing-pod", "default");
391391
existingPod.getMetadata().setResourceVersion("12345");
392-
392+
393393
V1Pod updatedPod = createPod("existing-pod", "default");
394394
updatedPod.getMetadata().setResourceVersion("12346");
395395

0 commit comments

Comments
 (0)