Reintroduce old methods
@@ -145,7 +145,11 @@ public class ApplicationClusterEndpoint {
return name;
}
- // TODO: remove
+ // TODO: remove when
+ public static DnsName sharedNameFrom(ClusterSpec.Id cluster, ApplicationId applicationId, String suffix) {
+ return sharedNameFrom(SystemName.main, cluster, applicationId, suffix);
+ }
+
public static DnsName sharedNameFrom(SystemName systemName, ClusterSpec.Id cluster, ApplicationId applicationId, String suffix) {
String name = dnsParts(systemName, cluster, applicationId)
.filter(Objects::nonNull) // remove null values that were "default"
@@ -153,6 +157,11 @@ public class ApplicationClusterEndpoint {
return new DnsName(sanitize(name) + suffix); // Need to sanitize name since it is considered one label
}
+ // TODO remove this method when 7.508 is latest version
+ public static DnsName sharedL4NameFrom(ClusterSpec.Id cluster, ApplicationId applicationId, String suffix) {
+ return sharedL4NameFrom(SystemName.main, cluster, applicationId, suffix);
+ }
+
public static DnsName sharedL4NameFrom(SystemName systemName, ClusterSpec.Id cluster, ApplicationId applicationId, String suffix) {
String name = dnsParts(systemName, cluster, applicationId)
.filter(Objects::nonNull) // remove null values that were "default"
