From 432177c8033824f2d432fc465b98b59d21cfeefb Mon Sep 17 00:00:00 2001 From: Vincent van Dam Date: Mon, 30 Oct 2023 08:34:29 +0100 Subject: [PATCH] Remove default kd-service creation #57 --- internal/backend/deploy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/backend/deploy.go b/internal/backend/deploy.go index c045523..3fe2ff4 100644 --- a/internal/backend/deploy.go +++ b/internal/backend/deploy.go @@ -249,7 +249,7 @@ func (in *instance) getServices(tainr *types.Container) []corev1.Service { return svcs } valid := regexp.MustCompile("^[a-z]([-a-z0-9]*[a-z0-9])?$") - for _, alias := range append(tainr.NetworkAliases, "kd-"+tainr.ShortID) { + for _, alias := range tainr.NetworkAliases { if ok := valid.MatchString(alias); !ok { klog.Infof("ignoring network alias %s, invalid name", alias) continue