Skip to content

Commit

Permalink
Remove default kd-service creation #57
Browse files Browse the repository at this point in the history
  • Loading branch information
joyrex2001 committed Oct 30, 2023
1 parent b62f8e9 commit 432177c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/backend/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 432177c

Please sign in to comment.