mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Adding AppProtocol to Service and Endpoints Ports
This commit is contained in:
@@ -117,9 +117,10 @@ func getEndpointPorts(service *corev1.Service, pod *corev1.Pod) []discovery.Endp
|
||||
|
||||
i32PortNum := int32(portNum)
|
||||
endpointPorts = append(endpointPorts, discovery.EndpointPort{
|
||||
Name: &portName,
|
||||
Port: &i32PortNum,
|
||||
Protocol: &portProto,
|
||||
Name: &portName,
|
||||
Port: &i32PortNum,
|
||||
Protocol: &portProto,
|
||||
AppProtocol: servicePort.AppProtocol,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user