Skip to content

Commit 5f64d96

Browse files
committed
fix test
Signed-off-by: wind57 <[email protected]>
1 parent a921c4a commit 5f64d96

File tree

15 files changed

+53
-70
lines changed

15 files changed

+53
-70
lines changed

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

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void testServiceWithUnsetPortNames() {
111111
assertThat(discoveryClient.getInstances("test-svc-1").toArray())
112112
.containsOnly(new DefaultKubernetesServiceInstance(null, "test-svc-1", "1.1.1.1", 80,
113113
Map.of("port.<unset>", "80", "k8s_namespace", "namespace1", "type", "ClusterIP"), false,
114-
"namespace1", null));
114+
"namespace1", null, Map.of()));
115115
}
116116

117117
@Test
@@ -161,7 +161,7 @@ void testDiscoveryInstancesWithServiceLabels() {
161161
new DefaultKubernetesServiceInstance(
162162
null, "test-svc-3", "2.2.2.2", 8080, Map.of("spring", "true", "port.<unset>", "8080", "k8s",
163163
"true", "k8s_namespace", "namespace1", "type", "ClusterIP"),
164-
false, "namespace1", null));
164+
false, "namespace1", null, Map.of()));
165165
}
166166

167167
@Test
@@ -214,7 +214,7 @@ void testDiscoveryGetInstanceAllNamespaceShouldWork() {
214214
assertThat(discoveryClient.getInstances("test-svc-1"))
215215
.containsOnly(new DefaultKubernetesServiceInstance(null, "test-svc-1", "2.2.2.2", 8080,
216216
Map.of("port.<unset>", "8080", "k8s_namespace", "namespace1", "type", "ClusterIP"), false,
217-
"namespace1", null));
217+
"namespace1", null, Map.of()));
218218
}
219219

220220
@Test
@@ -229,7 +229,7 @@ void testDiscoveryGetInstanceOneNamespaceShouldWork() {
229229
assertThat(discoveryClient.getInstances("test-svc-1"))
230230
.containsOnly(new DefaultKubernetesServiceInstance(null, "test-svc-1", "2.2.2.2", 8080,
231231
Map.of("port.<unset>", "8080", "k8s_namespace", "namespace1", "type", "ClusterIP"), false,
232-
"namespace1", null));
232+
"namespace1", null, Map.of()));
233233
}
234234

235235
@Test
@@ -260,7 +260,7 @@ void testDiscoveryGetInstanceWithNotReadyAddressesIncludedShouldWork() {
260260
assertThat(discoveryClient.getInstances("test-svc-1"))
261261
.containsOnly(new DefaultKubernetesServiceInstance(null, "test-svc-1", "2.2.2.2", 8080,
262262
Map.of("port.<unset>", "8080", "k8s_namespace", "namespace1", "type", "ClusterIP"), false,
263-
"namespace1", null));
263+
"namespace1", null, Map.of()));
264264
}
265265

266266
@Test
@@ -286,7 +286,7 @@ void instanceWithoutPortsWillNotBeSkipped() {
286286

287287
assertThat(discoveryClient.getInstances("test-svc-1"))
288288
.containsOnly(new DefaultKubernetesServiceInstance(null, "test-svc-1", "1.1.1.1", 0,
289-
Map.of("k8s_namespace", "namespace1", "type", "ClusterIP"), false, "namespace1", null));
289+
Map.of("k8s_namespace", "namespace1", "type", "ClusterIP"), false, "namespace1", null, Map.of()));
290290
}
291291

292292
@Test
@@ -298,10 +298,10 @@ void instanceWithMultiplePortsAndPrimaryPortNameConfiguredWithLabelShouldWork()
298298
List.of(SHARED_INFORMER_FACTORY), List.of(serviceLister), List.of(endpointsLister), null, null,
299299
NOT_ALL_NAMESPACES, CORE_V1_API, x -> true);
300300

301-
assertThat(discoveryClient.getInstances("test-svc-1")).containsOnly(new DefaultKubernetesServiceInstance(
302-
null, "test-svc-1", "1.1.1.1", 443, Map.of("port.http", "80", "primary-port-name", "https",
303-
"port.https", "443", "k8s_namespace", "namespace1", "type", "ClusterIP"),
304-
true, "namespace1", null));
301+
assertThat(discoveryClient.getInstances("test-svc-1")).containsOnly(new DefaultKubernetesServiceInstance(null,
302+
"test-svc-1", "1.1.1.1", 443, Map.of("port.http", "80", "primary-port-name", "https", "port.https",
303+
"443", "k8s_namespace", "namespace1", "type", "ClusterIP"),
304+
true, "namespace1", null, Map.of()));
305305
}
306306

307307
@Test
@@ -314,11 +314,10 @@ void instanceWithMultiplePortsAndMisconfiguredPrimaryPortNameInLabelShouldReturn
314314
List.of(SHARED_INFORMER_FACTORY), List.of(serviceLister), List.of(endpointsLister), null, null,
315315
NOT_ALL_NAMESPACES, CORE_V1_API, x -> true);
316316

317-
assertThat(discoveryClient.getInstances("test-svc-1"))
318-
.containsOnly(new DefaultKubernetesServiceInstance(
319-
null, "test-svc-1", "1.1.1.1", 80, Map.of("port.tcp1", "80", "primary-port-name", "oops",
320-
"port.tcp2", "443", "k8s_namespace", "namespace1", "type", "ClusterIP"),
321-
false, "namespace1", null));
317+
assertThat(discoveryClient.getInstances("test-svc-1")).containsOnly(new DefaultKubernetesServiceInstance(
318+
null, "test-svc-1", "1.1.1.1", 80, Map.of("port.tcp1", "80", "primary-port-name", "oops", "port.tcp2",
319+
"443", "k8s_namespace", "namespace1", "type", "ClusterIP"),
320+
false, "namespace1", null, Map.of()));
322321
}
323322

324323
@Test
@@ -333,7 +332,7 @@ void instanceWithMultiplePortsAndGenericPrimaryPortNameConfiguredShouldWork() {
333332
assertThat(discoveryClient.getInstances("test-svc-1"))
334333
.containsOnly(new DefaultKubernetesServiceInstance(null, "test-svc-1", "1.1.1.1", 443,
335334
Map.of("port.http", "80", "port.https", "443", "k8s_namespace", "namespace1", "type", "ClusterIP"),
336-
true, "namespace1", null));
335+
true, "namespace1", null, Map.of()));
337336
}
338337

339338
@Test
@@ -349,7 +348,7 @@ void instanceWithMultiplePortsAndMisconfiguredGenericPrimaryPortNameShouldReturn
349348
assertThat(discoveryClient.getInstances("test-svc-1"))
350349
.containsOnly(new DefaultKubernetesServiceInstance(null, "test-svc-1", "1.1.1.1", 80,
351350
Map.of("port.tcp1", "80", "port.tcp2", "443", "k8s_namespace", "namespace1", "type", "ClusterIP"),
352-
false, "namespace1", null));
351+
false, "namespace1", null, Map.of()));
353352
}
354353

355354
@Test
@@ -364,7 +363,7 @@ void instanceWithMultiplePortsAndWithoutPrimaryPortNameSpecifiedShouldFallBackTo
364363
assertThat(discoveryClient.getInstances("test-svc-1"))
365364
.containsOnly(new DefaultKubernetesServiceInstance(null, "test-svc-1", "1.1.1.1", 443,
366365
Map.of("port.http", "80", "port.https", "443", "k8s_namespace", "namespace1", "type", "ClusterIP"),
367-
true, "namespace1", null));
366+
true, "namespace1", null, Map.of()));
368367
}
369368

370369
@Test
@@ -379,7 +378,7 @@ void instanceWithMultiplePortsAndWithoutPrimaryPortNameSpecifiedOrHttpsPortShoul
379378
assertThat(discoveryClient.getInstances("test-svc-1"))
380379
.containsOnly(new DefaultKubernetesServiceInstance(null, "test-svc-1", "1.1.1.1", 80,
381380
Map.of("port.http", "80", "port.tcp", "443", "k8s_namespace", "namespace1", "type", "ClusterIP"),
382-
false, "namespace1", null));
381+
false, "namespace1", null, Map.of()));
383382
}
384383

385384
@Test
@@ -395,7 +394,7 @@ void instanceWithMultiplePortsAndWithoutAnyConfigurationShouldPickTheFirstPort()
395394
assertThat(discoveryClient.getInstances("test-svc-1"))
396395
.containsOnly(new DefaultKubernetesServiceInstance(null, "test-svc-1", "1.1.1.1", 80,
397396
Map.of("port.tcp1", "80", "port.tcp2", "443", "k8s_namespace", "namespace1", "type", "ClusterIP"),
398-
false, "namespace1", null));
397+
false, "namespace1", null, Map.of()));
399398
}
400399

401400
@Test
@@ -410,10 +409,10 @@ void getInstancesShouldReturnInstancesWithTheSameServiceIdFromNamespaces() {
410409
assertThat(discoveryClient.getInstances("test-svc-1")).containsOnly(
411410
new DefaultKubernetesServiceInstance(null, "test-svc-1", "2.2.2.2", 8080,
412411
Map.of("port.<unset>", "8080", "k8s_namespace", "namespace1", "type", "ClusterIP"), false,
413-
"namespace1", null),
412+
"namespace1", null, Map.of()),
414413
new DefaultKubernetesServiceInstance(null, "test-svc-1", "2.2.2.2", 8080,
415414
Map.of("port.<unset>", "8080", "k8s_namespace", "namespace2", "type", "ClusterIP"), false,
416-
"namespace2", null));
415+
"namespace2", null, Map.of()));
417416
}
418417

419418
@Test

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ void testDiscoveryGetInstanceAllNamespaceShouldWork() {
137137
StepVerifier.create(discoveryClient.getInstances("test-svc-1"))
138138
.expectNext(new DefaultKubernetesServiceInstance(null, "test-svc-1", "2.2.2.2", 8080,
139139
Map.of("type", "ClusterIP", "port.<unset>", "8080", "k8s_namespace", "namespace1"), false,
140-
"namespace1", null))
140+
"namespace1", null, Map.of()))
141141
.expectComplete()
142142
.verify();
143143

@@ -159,7 +159,7 @@ void testDiscoveryGetInstanceOneNamespaceShouldWork() {
159159
StepVerifier.create(discoveryClient.getInstances("test-svc-1"))
160160
.expectNext(new DefaultKubernetesServiceInstance(null, "test-svc-1", "2.2.2.2", 8080,
161161
Map.of("type", "ClusterIP", "port.<unset>", "8080", "k8s_namespace", "namespace1"), false,
162-
"namespace1", null))
162+
"namespace1", null, Map.of()))
163163
.expectComplete()
164164
.verify();
165165

spring-cloud-kubernetes-client-loadbalancer/src/main/java/org/springframework/cloud/kubernetes/client/loadbalancer/KubernetesClientServiceInstanceMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public KubernetesServiceInstance map(V1Service service) {
116116
boolean secure = secure(port, service);
117117

118118
return new DefaultKubernetesServiceInstance(metadata.getUid(), metadata.getName(), host, port.getPort(),
119-
serviceMetadata(service), secure);
119+
serviceMetadata(service), secure, null, null, Map.of());
120120
}
121121

122122
private Map<String, String> serviceMetadata(V1Service service) {

spring-cloud-kubernetes-client-loadbalancer/src/test/java/org/springframework/cloud/kubernetes/client/loadbalancer/KubernetesClientServiceInstanceMapperTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void singlePortNonSecure() {
5959
Map<String, String> metadata = Map.of("org.springframework.cloud", "true", "beta", "true", "k8s_namespace",
6060
"default", "type", "V1Service");
6161
DefaultKubernetesServiceInstance result = new DefaultKubernetesServiceInstance("0", "database",
62-
"database.default.svc.cluster.local", 80, metadata, false);
62+
"database.default.svc.cluster.local", 80, metadata, false, null, null, Map.of());
6363
assertThat(serviceInstance).isEqualTo(result);
6464
}
6565

@@ -79,7 +79,7 @@ void singlePortSecure() {
7979
Map<String, String> metadata = Map.of("org.springframework.cloud", "true", "beta", "true", "secured", "true",
8080
"k8s_namespace", "default", "type", "V1Service");
8181
DefaultKubernetesServiceInstance result = new DefaultKubernetesServiceInstance("0", "database",
82-
"database.default.svc.cluster.local", 80, metadata, true);
82+
"database.default.svc.cluster.local", 80, metadata, true, null, null, Map.of());
8383
assertThat(serviceInstance).isEqualTo(result);
8484
}
8585

@@ -100,7 +100,7 @@ void multiplePortsSecure() {
100100
"default", "type", "V1Service");
101101
KubernetesServiceInstance serviceInstance = mapper.map(service);
102102
DefaultKubernetesServiceInstance result = new DefaultKubernetesServiceInstance("0", "database",
103-
"database.default.svc.cluster.local", 443, metadata, true);
103+
"database.default.svc.cluster.local", 443, metadata, true, null, null, Map.of());
104104
assertThat(serviceInstance).isEqualTo(result);
105105
}
106106

spring-cloud-kubernetes-client-loadbalancer/src/test/java/org/springframework/cloud/kubernetes/client/loadbalancer/KubernetesClientServicesListSupplierTests.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ void singleNamespaceTest(CapturedOutput output) {
150150
Map<String, String> metadata = Map.of("org.springframework.cloud", "true", "beta", "true", "k8s_namespace",
151151
"default", "type", "V1Service");
152152
DefaultKubernetesServiceInstance serviceA = new DefaultKubernetesServiceInstance("0", "service-a",
153-
"service-a.default.svc.cluster.local", 80, metadata, false);
153+
"service-a.default.svc.cluster.local", 80, metadata, false, null, null, Map.of());
154154
List<ServiceInstance> services = new ArrayList<>();
155155
services.add(serviceA);
156156

@@ -218,9 +218,10 @@ void allNamespacesTest(CapturedOutput output) {
218218
Map<String, String> metadata = Map.of("org.springframework.cloud", "true", "beta", "true", "k8s_namespace",
219219
"default", "type", "V1Service");
220220
DefaultKubernetesServiceInstance serviceADefaultNamespace = new DefaultKubernetesServiceInstance("0",
221-
"service-a", "service-a.default.svc.cluster.local", 80, metadata, false);
221+
"service-a", "service-a.default.svc.cluster.local", 80, metadata, false, null, null, Map.of());
222222
DefaultKubernetesServiceInstance serviceATestNamespace = new DefaultKubernetesServiceInstance("1", "service-a",
223-
"service-a.test.svc.cluster.local", 80, Map.of("k8s_namespace", "test", "type", "V1Service"), false);
223+
"service-a.test.svc.cluster.local", 80, Map.of("k8s_namespace", "test", "type", "V1Service"), false,
224+
null, null, Map.of());
224225
List<ServiceInstance> services = new ArrayList<>();
225226
services.add(serviceADefaultNamespace);
226227
services.add(serviceATestNamespace);
@@ -263,9 +264,10 @@ void selectiveNamespacesTest(CapturedOutput output) {
263264
Map<String, String> metadata = Map.of("org.springframework.cloud", "true", "beta", "true", "k8s_namespace",
264265
"default", "type", "V1Service");
265266
DefaultKubernetesServiceInstance serviceADefaultNamespace = new DefaultKubernetesServiceInstance("0",
266-
"service-a", "service-a.default.svc.cluster.local", 80, metadata, false);
267+
"service-a", "service-a.default.svc.cluster.local", 80, metadata, false, null, null, Map.of());
267268
DefaultKubernetesServiceInstance serviceATestNamespace = new DefaultKubernetesServiceInstance("1", "service-a",
268-
"service-a.test.svc.cluster.local", 80, Map.of("k8s_namespace", "test", "type", "V1Service"), false);
269+
"service-a.test.svc.cluster.local", 80, Map.of("k8s_namespace", "test", "type", "V1Service"), false,
270+
null, null, Map.of());
269271
List<ServiceInstance> services = new ArrayList<>();
270272
services.add(serviceADefaultNamespace);
271273
services.add(serviceATestNamespace);

spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/discovery/DefaultKubernetesServiceInstance.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,6 @@ public record DefaultKubernetesServiceInstance(String instanceId, String service
3838
Map<String, String> metadata, boolean secure, String namespace, String cluster,
3939
Map<String, Map<String, String>> podMetadata) implements KubernetesServiceInstance {
4040

41-
/**
42-
* @param instanceId the id of the instance.
43-
* @param serviceId the id of the service.
44-
* @param host the address where the service instance can be found.
45-
* @param port the port on which the service is running.
46-
* @param metadata a map containing metadata.
47-
* @param secure indicates whether the connection needs to be secure.
48-
*/
49-
public DefaultKubernetesServiceInstance(String instanceId, String serviceId, String host, int port,
50-
Map<String, String> metadata, boolean secure) {
51-
this(instanceId, serviceId, host, port, metadata, secure, null, null, Map.of());
52-
}
53-
54-
public DefaultKubernetesServiceInstance(String instanceId, String serviceId, String host, int port,
55-
Map<String, String> metadata, boolean secure, String namespace, String cluster) {
56-
this(instanceId, serviceId, host, port, metadata, secure, namespace, cluster, Map.of());
57-
}
58-
5941
@Override
6042
public String getInstanceId() {
6143
return this.instanceId;

spring-cloud-kubernetes-commons/src/test/java/org/springframework/cloud/kubernetes/commons/discovery/KubernetesServiceInstanceTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class KubernetesServiceInstanceTests {
3232
@Test
3333
void testFirstConstructor() {
3434
DefaultKubernetesServiceInstance instance = new DefaultKubernetesServiceInstance("instanceId", "serviceId",
35-
"host", 8080, Map.of("k8s_namespace", "spring-k8s"), true);
35+
"host", 8080, Map.of("k8s_namespace", "spring-k8s"), true, null, null, Map.of());
3636

3737
assertThat(instance.getInstanceId()).isEqualTo("instanceId");
3838
assertThat(instance.getServiceId()).isEqualTo("serviceId");
@@ -50,7 +50,7 @@ void testFirstConstructor() {
5050
@Test
5151
void testSecondConstructor() {
5252
DefaultKubernetesServiceInstance instance = new DefaultKubernetesServiceInstance("instanceId", "serviceId",
53-
"host", 8080, Map.of("a", "b"), true, "spring-k8s", "cluster");
53+
"host", 8080, Map.of("a", "b"), true, "spring-k8s", "cluster", Map.of());
5454

5555
assertThat(instance.getInstanceId()).isEqualTo("instanceId");
5656
assertThat(instance.getServiceId()).isEqualTo("serviceId");
@@ -97,7 +97,7 @@ void schemeIsHttps() {
9797

9898
private DefaultKubernetesServiceInstance assertServiceInstance(boolean secure) {
9999
DefaultKubernetesServiceInstance instance = new DefaultKubernetesServiceInstance("123", "myservice", "1.2.3.4",
100-
8080, Collections.emptyMap(), secure);
100+
8080, Collections.emptyMap(), secure, null, null, Map.of());
101101

102102
assertThat(instance.getInstanceId()).isEqualTo("123");
103103
assertThat(instance.getServiceId()).isEqualTo("myservice");

spring-cloud-kubernetes-controllers/spring-cloud-kubernetes-configuration-watcher/src/test/java/org/springframework/cloud/kubernetes/configuration/watcher/HttpBasedConfigMapWatchChangeDetectorTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ threadPoolTaskExecutor, new HttpRefreshTrigger(reactiveDiscoveryClient,
225225
fooEndpointPort.setPort(port);
226226
List<ServiceInstance> instances = new ArrayList<>();
227227
DefaultKubernetesServiceInstance fooServiceInstance = new DefaultKubernetesServiceInstance("foo", "foo",
228-
fooEndpointAddress.getIp(), fooEndpointPort.getPort(), metadata, false);
228+
fooEndpointAddress.getIp(), fooEndpointPort.getPort(), metadata, false, null, null, Map.of());
229229
instances.add(fooServiceInstance);
230230
return instances;
231231
}
@@ -240,7 +240,7 @@ private void stubReactiveCall() {
240240

241241
List<ServiceInstance> instances = new ArrayList<>();
242242
DefaultKubernetesServiceInstance fooServiceInstance = new DefaultKubernetesServiceInstance("foo", "foo",
243-
fooEndpointAddress.getIp(), fooEndpointPort.getPort(), new HashMap<>(), false);
243+
fooEndpointAddress.getIp(), fooEndpointPort.getPort(), new HashMap<>(), false, null, null, Map.of());
244244
instances.add(fooServiceInstance);
245245
when(reactiveDiscoveryClient.getInstances(eq("foo"))).thenReturn(Flux.fromIterable(instances));
246246
}

spring-cloud-kubernetes-controllers/spring-cloud-kubernetes-configuration-watcher/src/test/java/org/springframework/cloud/kubernetes/configuration/watcher/HttpBasedSecretsWatchChangeDetectorTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ void triggerSecretRefreshWithAnnotationActuatorPath(String endpoint, RefreshStra
204204
fooEndpointPort.setPort(WIRE_MOCK_SERVER.port());
205205
List<ServiceInstance> instances = new ArrayList<>();
206206
DefaultKubernetesServiceInstance fooServiceInstance = new DefaultKubernetesServiceInstance("foo", "foo",
207-
fooEndpointAddress.getIp(), fooEndpointPort.getPort(), metadata, false);
207+
fooEndpointAddress.getIp(), fooEndpointPort.getPort(), metadata, false, null, null, Map.of());
208208
instances.add(fooServiceInstance);
209209
when(reactiveDiscoveryClient.getInstances(eq("foo"))).thenReturn(Flux.fromIterable(instances));
210210
V1Secret secret = new V1Secret();
@@ -227,7 +227,7 @@ private void stubReactiveCall() {
227227
fooEndpointPort.setPort(WIRE_MOCK_SERVER.port());
228228
List<ServiceInstance> instances = new ArrayList<>();
229229
DefaultKubernetesServiceInstance fooServiceInstance = new DefaultKubernetesServiceInstance("foo", "foo",
230-
fooEndpointAddress.getIp(), fooEndpointPort.getPort(), new HashMap<>(), false);
230+
fooEndpointAddress.getIp(), fooEndpointPort.getPort(), new HashMap<>(), false, null, null, Map.of());
231231
instances.add(fooServiceInstance);
232232
when(reactiveDiscoveryClient.getInstances(eq("foo"))).thenReturn(Flux.fromIterable(instances));
233233
}

spring-cloud-kubernetes-controllers/spring-cloud-kubernetes-discoveryserver/src/test/java/org/springframework/cloud/kubernetes/discoveryserver/DiscoveryServerControllerTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@
4141
class DiscoveryServerControllerTests {
4242

4343
private static final DefaultKubernetesServiceInstance SERVICE_A_INSTANCE_1 = new DefaultKubernetesServiceInstance(
44-
"serviceAInstance1", "serviceAInstance1", "2.2.2.2", 8080, Map.of(), false, "namespace1", null);
44+
"serviceAInstance1", "serviceAInstance1", "2.2.2.2", 8080, Map.of(), false, "namespace1", null, Map.of());
4545

4646
private static final DefaultKubernetesServiceInstance SERVICE_A_INSTANCE_2 = new DefaultKubernetesServiceInstance(
47-
"serviceAInstance2", "serviceAInstance2", "2.2.2.2", 8080, Map.of(), false, "namespace1", null);
47+
"serviceAInstance2", "serviceAInstance2", "2.2.2.2", 8080, Map.of(), false, "namespace1", null, Map.of());
4848

4949
private static final DefaultKubernetesServiceInstance SERVICE_A_INSTANCE_3 = new DefaultKubernetesServiceInstance(
50-
"serviceAInstance3", "serviceAInstance3", "2.2.2.2", 8080, Map.of(), false, "namespace2", null);
50+
"serviceAInstance3", "serviceAInstance3", "2.2.2.2", 8080, Map.of(), false, "namespace2", null, Map.of());
5151

5252
private static final DefaultKubernetesServiceInstance SERVICE_B_INSTANCE_1 = new DefaultKubernetesServiceInstance(
53-
"serviceBInstance1", "serviceBInstance1", "2.2.2.2", 8080, Map.of(), false, "namespace1", null);
53+
"serviceBInstance1", "serviceBInstance1", "2.2.2.2", 8080, Map.of(), false, "namespace1", null, Map.of());
5454

5555
private static final DefaultKubernetesServiceInstance SERVICE_C_INSTANCE_1 = new DefaultKubernetesServiceInstance(
56-
"serviceCInstance1", "serviceCInstance1", "2.2.2.2", 8080, Map.of(), false, "namespace2", null);
56+
"serviceCInstance1", "serviceCInstance1", "2.2.2.2", 8080, Map.of(), false, "namespace2", null, Map.of());
5757

5858
private static Service serviceA;
5959

0 commit comments

Comments
 (0)