Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ public static String getExternalServiceName(String clusterId) {
* project, so do not delete it.
*/
public static String getNamespacedExternalServiceName(String clusterId, String namespace) {
return getExternalServiceName(clusterId) + "." + namespace;
return getExternalServiceName(clusterId) + "." + namespace + ".svc";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ public static String getInternalServiceName(String clusterId) {

/** Generate namespaced name of the internal Service. */
public static String getNamespacedInternalServiceName(String clusterId, String namespace) {
return getInternalServiceName(clusterId) + "." + namespace;
return getInternalServiceName(clusterId) + "." + namespace + ".svc";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ public static String extractLeaderName(String key) {

/** Generate namespaced name of the service. */
public static String getNamespacedServiceName(Service service) {
return service.getMetadata().getName() + "." + service.getMetadata().getNamespace();
return service.getMetadata().getName() + "." + service.getMetadata().getNamespace() + ".svc";
}

private KubernetesUtils() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ void testDeployApplicationClusterWithClusterIP() throws Exception {
.deployApplicationCluster(clusterSpecification, appConfig)
.getClusterClient();

final String address = CLUSTER_ID + Constants.FLINK_REST_SERVICE_SUFFIX + "." + NAMESPACE;
final String address =
CLUSTER_ID + Constants.FLINK_REST_SERVICE_SUFFIX + "." + NAMESPACE + ".svc";
final int port = flinkConfig.get(RestOptions.PORT);
assertThat(clusterClient.getWebInterfaceURL())
.isEqualTo(String.format("http://%s:%d", address, port));
Expand Down