Route to k8s service port minecraft or mc-router (#135)

This commit is contained in:
Geoff Bourne
2022-10-23 22:18:10 -05:00
committed by GitHub
parent 25575c1176
commit a7229355bf
2 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ func (w *k8sWatcherImpl) buildDetails(service *core.Service, externalServiceName
clusterIp := service.Spec.ClusterIP
port := "25565"
for _, p := range service.Spec.Ports {
if p.Name == "mc-router" {
if p.Name == "mc-router" || p.Name == "minecraft" {
port = strconv.Itoa(int(p.Port))
}
}