Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions pkg/utils/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ func ConvertEndpointsToEndpointSlice(ep *corev1.Endpoints) []discoveryv1.Endpoin
epPort := discoveryv1.EndpointPort{
Port: &p.Port,
Protocol: &p.Protocol,
}
if p.Name != "" {
epPort.Name = &p.Name
Name: &p.Name,
}
ports = append(ports, epPort)
}
Expand Down
Loading