Skip to content

Commit 67ecd35

Browse files
committed
Add default port name for service
1 parent 0d24d95 commit 67ecd35

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/configuration/base/resources/service.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ func UpdateService(actual corev1.Service, config v1alpha2.Service, targetPort in
3131
}
3232
actual.Spec.Ports[0].Port = config.Port
3333
actual.Spec.Ports[0].TargetPort = intstr.IntOrString{IntVal: targetPort, Type: intstr.Int}
34+
actual.Spec.Ports[0].Name = config.Portname
3435
if config.NodePort != 0 {
3536
actual.Spec.Ports[0].NodePort = config.NodePort
3637
}

0 commit comments

Comments
 (0)