code: func createEndpointPortSpec(endpointPort int, endpointPortName string, extraEndpointPorts []corev1.EndpointPort) []corev1.EndpointPort {
  	endpointPorts := []corev1.EndpointPort{{Protocol: corev1.ProtocolTCP,
  		Port: int32(endpointPort),
  		Name: endpointPortName,
  	}}
  	if extraEndpointPorts != nil {
  		endpointPorts = append(endpointPorts, extraEndpointPorts...)
  	}
  	return endpointPorts
  }
docs: // createEndpointPortSpec creates an array of endpoint ports