Skip to content

Commit 8f94bd9

Browse files
committed
fix compilation
Signed-off-by: wind57 <[email protected]>
1 parent 9727e06 commit 8f94bd9

File tree

11 files changed

+126
-118
lines changed

11 files changed

+126
-118
lines changed

spring-cloud-kubernetes-client-discovery/src/main/java/org/springframework/cloud/kubernetes/client/discovery/KubernetesClientConfigServerBootstrapper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ public void initialize(BootstrapRegistry registry) {
9898
.sharedIndexInformerFor(endpointsApi, V1Endpoints.class, 0L, namespace);
9999
Lister<V1Endpoints> endpointsLister = new Lister<>(endpointsSharedIndexInformer.getIndexer());
100100
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(
101-
List.of(sharedInformerFactory), List.of(serviceLister), List.of(endpointsLister),
102-
List.of(serviceSharedIndexInformer), List.of(endpointsSharedIndexInformer), discoveryProperties,
103-
new CoreV1Api(apiClient));
101+
List.of(sharedInformerFactory), List.of(serviceLister), List.of(endpointsLister),
102+
List.of(serviceSharedIndexInformer), List.of(endpointsSharedIndexInformer), discoveryProperties,
103+
new CoreV1Api(apiClient));
104104
try {
105105
discoveryClient.afterPropertiesSet();
106106
return discoveryClient::getInstances;

spring-cloud-kubernetes-client-discovery/src/main/java/org/springframework/cloud/kubernetes/client/discovery/KubernetesInformerDiscoveryClientAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ KubernetesInformerDiscoveryClient kubernetesClientInformerDiscoveryClient(
8181
SharedInformer<V1Endpoints> endpointsInformer, KubernetesDiscoveryProperties properties,
8282
CoreV1Api coreV1Api) {
8383
return new KubernetesInformerDiscoveryClient(List.of(sharedInformerFactory), List.of(serviceLister),
84-
List.of(endpointsLister), List.of(serviceInformer), List.of(endpointsInformer), properties, coreV1Api);
84+
List.of(endpointsLister), List.of(serviceInformer), List.of(endpointsInformer), properties, coreV1Api);
8585
}
8686

8787
@Bean

spring-cloud-kubernetes-client-discovery/src/main/java/org/springframework/cloud/kubernetes/client/discovery/reactive/KubernetesInformerReactiveDiscoveryClientAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ KubernetesInformerDiscoveryClient kubernetesClientInformerDiscoveryClient(
104104
SharedInformer<V1Endpoints> endpointsInformer, KubernetesDiscoveryProperties properties,
105105
CoreV1Api coreV1Api) {
106106
return new KubernetesInformerDiscoveryClient(List.of(sharedInformerFactory), List.of(serviceLister),
107-
List.of(endpointsLister), List.of(serviceInformer), List.of(endpointsInformer), properties, coreV1Api);
107+
List.of(endpointsLister), List.of(serviceInformer), List.of(endpointsInformer), properties, coreV1Api);
108108
}
109109

110110
@Bean

spring-cloud-kubernetes-client-discovery/src/test/java/org/springframework/cloud/kubernetes/client/discovery/KubernetesDiscoveryClientFilterMetadataTest.java

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@
3636
import org.assertj.core.util.Strings;
3737
import org.junit.jupiter.api.BeforeEach;
3838
import org.junit.jupiter.api.Test;
39-
4039
import org.mockito.Mockito;
40+
4141
import org.springframework.cloud.client.ServiceInstance;
4242
import org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryProperties;
43-
import org.testcontainers.shaded.org.checkerframework.checker.units.qual.C;
4443

4544
import static java.util.Map.entry;
4645
import static java.util.stream.Collectors.toList;
@@ -86,8 +85,8 @@ void testAllExtraMetadataDisabled() {
8685
false, null, Set.of(), Map.of(), null, metadata, 0, true);
8786

8887
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
89-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
90-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
88+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
89+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
9190

9291
setup(serviceId, "ns", Map.of("l1", "lab"), Map.of("l1", "lab"), Map.of(80, "http", 5555, ""));
9392

@@ -106,8 +105,8 @@ void testLabelsEnabled() {
106105
false, null, Set.of(), Map.of(), null, metadata, 0, true);
107106

108107
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
109-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
110-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
108+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
109+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
111110

112111
setup(serviceId, "ns", Map.of("l1", "v1", "l2", "v2"), Map.of("l1", "lab"), Map.of(80, "http", 5555, ""));
113112

@@ -127,8 +126,8 @@ void testLabelsEnabledWithPrefix() {
127126
false, null, Set.of(), Map.of(), null, metadata, 0, true);
128127

129128
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
130-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
131-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
129+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
130+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
132131

133132
setup(serviceId, "ns", Map.of("l1", "v1", "l2", "v2"), Map.of("l1", "lab"), Map.of(80, "http", 5555, ""));
134133

@@ -148,8 +147,8 @@ void testAnnotationsEnabled() {
148147
false, null, Set.of(), Map.of(), null, metadata, 0, true);
149148

150149
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
151-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
152-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
150+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
151+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
153152

154153
setup(serviceId, "ns", Map.of("l1", "v1"), Map.of("a1", "v1", "a2", "v2"), Map.of(80, "http", 5555, ""));
155154

@@ -169,8 +168,8 @@ void testAnnotationsEnabledWithPrefix() {
169168
false, null, Set.of(), Map.of(), null, metadata, 0, true);
170169

171170
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
172-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
173-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
171+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
172+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
174173

175174
setup(serviceId, "ns", Map.of("l1", "v1"), Map.of("a1", "v1", "a2", "v2"), Map.of(80, "http", 5555, ""));
176175

@@ -190,8 +189,8 @@ void testPortsEnabled() {
190189
false, null, Set.of(), Map.of(), null, metadata, 0, true);
191190

192191
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
193-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
194-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
192+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
193+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
195194

196195
setup(serviceId, "test", Map.of("l1", "v1"), Map.of("a1", "v1", "a2", "v2"), Map.of(80, "http", 5555, ""));
197196

@@ -211,8 +210,8 @@ void testPortsEnabledWithPrefix() {
211210
false, null, Set.of(), Map.of(), null, metadata, 0, true);
212211

213212
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
214-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
215-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
213+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
214+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
216215

217216
setup(serviceId, "ns", Map.of("l1", "v1"), Map.of("a1", "v1", "a2", "v2"), Map.of(80, "http", 5555, ""));
218217

@@ -232,8 +231,8 @@ void testLabelsAndAnnotationsAndPortsEnabledWithPrefix() {
232231
false, null, Set.of(), Map.of(), null, metadata, 0, true);
233232

234233
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
235-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
236-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
234+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
235+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
237236

238237
setup(serviceId, "ns", Map.of("l1", "la1"), Map.of("a1", "an1", "a2", "an2"), Map.of(80, "http", 5555, ""));
239238

spring-cloud-kubernetes-client-discovery/src/test/java/org/springframework/cloud/kubernetes/client/discovery/KubernetesDiscoveryClientServiceWithoutPortNameTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
import org.assertj.core.api.Assertions;
3737
import org.junit.jupiter.api.BeforeEach;
3838
import org.junit.jupiter.api.Test;
39-
4039
import org.mockito.Mockito;
40+
4141
import org.springframework.cloud.client.ServiceInstance;
4242
import org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryProperties;
4343

@@ -95,8 +95,8 @@ void testDiscoveryWithoutAServicePortName() {
9595
true, 60, false, null, Set.of(), Map.of(), null, KubernetesDiscoveryProperties.Metadata.DEFAULT, 0,
9696
true);
9797
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
98-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
99-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
98+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
99+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
100100

101101
List<ServiceInstance> serviceInstances = discoveryClient.getInstances("no-port-name-service");
102102
Assertions.assertThat(serviceInstances.size()).isEqualTo(1);

spring-cloud-kubernetes-client-discovery/src/test/java/org/springframework/cloud/kubernetes/client/discovery/KubernetesDiscoveryClientTests.java

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
import io.kubernetes.client.openapi.models.V1ServiceSpecBuilder;
3939
import org.junit.jupiter.api.BeforeEach;
4040
import org.junit.jupiter.api.Test;
41-
4241
import org.mockito.Mockito;
42+
4343
import org.springframework.cloud.client.ServiceInstance;
4444
import org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryProperties;
4545
import org.springframework.cloud.kubernetes.commons.discovery.KubernetesServiceInstance;
@@ -97,8 +97,8 @@ void getInstancesShouldBeAbleToHandleEndpointsSingleAddress() {
9797
false, null, Set.of(), Map.of(), null, metadata, 0, true);
9898

9999
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
100-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
101-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, null);
100+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
101+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, null);
102102

103103
List<ServiceInstance> instances = discoveryClient.getInstances("id");
104104

@@ -128,8 +128,8 @@ void getInstancesShouldBeAbleToHandleEndpointsSingleAddressAndMultiplePorts() {
128128
false, null, Set.of(), labels, "http_tcp", KubernetesDiscoveryProperties.Metadata.DEFAULT, 0, true);
129129

130130
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
131-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
132-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
131+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
132+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
133133

134134
List<ServiceInstance> instances = discoveryClient.getInstances("endpoint");
135135

@@ -163,8 +163,8 @@ void getInstancesShouldBeAbleToHandleEndpointsMultipleAddresses() {
163163
false, null, Set.of(443, 8443), labels, null, metadata, 0, true);
164164

165165
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
166-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
167-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
166+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
167+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
168168

169169
List<ServiceInstance> instances = discoveryClient.getInstances("endpoint");
170170

@@ -200,8 +200,8 @@ void getInstancesShouldBeAbleToHandleEndpointsFromMultipleNamespaces() {
200200
false, null, Set.of(), Map.of(), null, KubernetesDiscoveryProperties.Metadata.DEFAULT, 0, true);
201201

202202
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
203-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
204-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
203+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
204+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
205205

206206
List<ServiceInstance> instances = discoveryClient.getInstances("endpoint");
207207

@@ -240,8 +240,8 @@ void instanceWithoutSubsetsShouldBeSkipped() {
240240
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, true, Set.of(), true, 60,
241241
false, null, Set.of(), Map.of(), null, KubernetesDiscoveryProperties.Metadata.DEFAULT, 0, true);
242242
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
243-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
244-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
243+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
244+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
245245

246246
List<ServiceInstance> instances = discoveryClient.getInstances("endpoint1");
247247

@@ -267,8 +267,8 @@ void getInstancesShouldBeAbleToHandleEndpointsSingleAddressAndMultiplePortsUsing
267267
false, null, Set.of(443, 8443), Map.of(), null, KubernetesDiscoveryProperties.Metadata.DEFAULT, 0,
268268
true);
269269
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
270-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
271-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
270+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
271+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
272272

273273
List<ServiceInstance> instances = discoveryClient.getInstances("endpoint2");
274274

@@ -300,8 +300,8 @@ void instanceWithMultiplePortsAndMisconfiguredPrimaryPortNameInLabelWithoutFallb
300300
false, null, Set.of(443, 8443), Map.of(), null, KubernetesDiscoveryProperties.Metadata.DEFAULT, 0,
301301
true);
302302
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
303-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
304-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
303+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
304+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
305305

306306
List<ServiceInstance> instances = discoveryClient.getInstances("endpoint3");
307307

@@ -332,8 +332,8 @@ void instanceWithMultiplePortsAndMisconfiguredGenericPrimaryPortNameWithoutFallb
332332
false, null, Set.of(443, 8443), Map.of(), "oops", KubernetesDiscoveryProperties.Metadata.DEFAULT, 0,
333333
true);
334334
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
335-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
336-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
335+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
336+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
337337

338338
List<ServiceInstance> instances = discoveryClient.getInstances("endpoint4");
339339

@@ -365,8 +365,8 @@ void instanceWithMultiplePortsAndWithoutPrimaryPortNameSpecifiedShouldFallBackTo
365365
true);
366366

367367
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
368-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
369-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
368+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
369+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
370370

371371
List<ServiceInstance> instances = discoveryClient.getInstances("endpoint5");
372372

@@ -395,8 +395,8 @@ void instanceWithMultiplePortsAndWithoutPrimaryPortNameSpecifiedOrHttpsPortShoul
395395
setup(serviceId, serviceType, namespace, labels, ips, uuids, names, protocols, ports, appProtocols);
396396

397397
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
398-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
399-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), KubernetesDiscoveryProperties.DEFAULT, CORE_V1_API);
398+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
399+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), KubernetesDiscoveryProperties.DEFAULT, CORE_V1_API);
400400

401401
List<ServiceInstance> instances = discoveryClient.getInstances("endpoint5");
402402

@@ -428,8 +428,8 @@ void instanceWithMultiplePortsAndWithoutPrimaryPortNameSpecifiedShouldLogWarning
428428
true, null, Set.of(443, 8443), Map.of(), null, KubernetesDiscoveryProperties.Metadata.DEFAULT, 0, true);
429429

430430
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
431-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
432-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
431+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
432+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
433433

434434
List<ServiceInstance> instances = discoveryClient.getInstances("endpoint5");
435435

@@ -461,8 +461,8 @@ public void instanceWithoutPorts() {
461461
KubernetesDiscoveryProperties properties = KubernetesDiscoveryProperties.DEFAULT;
462462

463463
KubernetesInformerDiscoveryClient discoveryClient = new KubernetesInformerDiscoveryClient(List.of(STUB),
464-
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
465-
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
464+
List.of(servicesLister), List.of(endpointsLister), List.of(SERVICE_SHARED_INFORMER_STUB),
465+
List.of(ENDPOINTS_SHARED_INFORMER_STUB), properties, CORE_V1_API);
466466

467467
List<ServiceInstance> instances = discoveryClient.getInstances("endpoint5");
468468

0 commit comments

Comments
 (0)