We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ca4414 commit a138771Copy full SHA for a138771
pkg/utils/endpoints.go
@@ -72,9 +72,7 @@ func ConvertEndpointsToEndpointSlice(ep *corev1.Endpoints) []discoveryv1.Endpoin
72
epPort := discoveryv1.EndpointPort{
73
Port: &p.Port,
74
Protocol: &p.Protocol,
75
- }
76
- if p.Name != "" {
77
- epPort.Name = &p.Name
+ Name: &p.Name,
78
}
79
ports = append(ports, epPort)
80
0 commit comments