Skip to content

Commit 0bf3a25

Browse files
committed
reuse realm name
1 parent 513e170 commit 0bf3a25

File tree

4 files changed

+3
-18
lines changed

4 files changed

+3
-18
lines changed

src/main/java/io/cryostat/discovery/KubeEndpointSlicesDiscovery.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public class KubeEndpointSlicesDiscovery implements ResourceEventHandler<Endpoin
7373
private static final String NAMESPACE_QUERY_ADDR = "NS_QUERY_ENDPOINT_SLICE";
7474
private static final String ENDPOINT_SLICE_DISCOVERY_ADDR = "ENDPOINT_SLICE_DISC";
7575

76-
public static final String REALM = "KubernetesEndpointSlices";
76+
public static final String REALM = "KubernetesApi";
7777

7878
public static final String DISCOVERY_NAMESPACE_LABEL_KEY = "discovery.cryostat.io/namespace";
7979

src/main/resources/db/migration/V4.0.0__cryostat.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,7 @@
144144
parentNode
145145
) values
146146
((select nextval('DiscoveryNode_SEQ')), '{}'::jsonb, 'Custom Targets', 'Realm', (select id from universe)),
147-
((select nextval('DiscoveryNode_SEQ')), '{}'::jsonb, 'KubernetesEndpoints', 'Realm', (select id from universe)),
148-
((select nextval('DiscoveryNode_SEQ')), '{}'::jsonb, 'KubernetesEndpointSlices', 'Realm', (select id from universe)),
147+
((select nextval('DiscoveryNode_SEQ')), '{}'::jsonb, 'KubernetesApi', 'Realm', (select id from universe)),
149148
((select nextval('DiscoveryNode_SEQ')), '{}'::jsonb, 'JDP', 'Realm', (select id from universe)),
150149
((select nextval('DiscoveryNode_SEQ')), '{}'::jsonb, 'Podman', 'Realm', (select id from universe)),
151150
((select nextval('DiscoveryNode_SEQ')), '{}'::jsonb, 'Docker', 'Realm', (select id from universe));

src/main/resources/db/migration/V4.1.0__cryostat.sql

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/test/java/io/cryostat/discovery/DiscoveryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void testGetUniverse() {
5353
"children",
5454
Matchers.hasItems(
5555
Matchers.hasEntry("name", "Custom Targets"),
56-
Matchers.hasEntry("name", "KubernetesEndpointSlices"),
56+
Matchers.hasEntry("name", "KubernetesApi"),
5757
Matchers.hasEntry("name", "Podman"),
5858
Matchers.hasEntry("name", "Docker"),
5959
Matchers.hasEntry("name", "JDP")))

0 commit comments

Comments
 (0)