@@ -199,7 +199,7 @@ func (tcp *tcpUnidlerSocket) acceptConns(ch chan<- net.Conn, svcInfo *userspace.
199
199
// (and thus the hybrid proxy has switched this service over to using the normal proxy). Connections will
200
200
// be gradually timed out and dropped off the list of connections on a per-connection basis. The list of current
201
201
// connections is returned, in addition to whether or not we should retry this method.
202
- func (tcp * tcpUnidlerSocket ) awaitAwakening (service proxy.ServicePortName , serviceRef api. ObjectReference , loadBalancer userspace.LoadBalancer , inConns <- chan net.Conn , endpointsAvail chan <- interface {}) (* connectionList , bool ) {
202
+ func (tcp * tcpUnidlerSocket ) awaitAwakening (service proxy.ServicePortName , loadBalancer userspace.LoadBalancer , inConns <- chan net.Conn , endpointsAvail chan <- interface {}) (* connectionList , bool ) {
203
203
// collect connections and wait for endpoints to be available
204
204
sent_need_pods := false
205
205
timeout_started := false
@@ -218,7 +218,7 @@ func (tcp *tcpUnidlerSocket) awaitAwakening(service proxy.ServicePortName, servi
218
218
219
219
if ! sent_need_pods && ! loadBalancer .ServiceHasEndpoints (service ) {
220
220
glog .V (4 ).Infof ("unidling TCP proxy sent unidle event to wake up service %s/%s:%s" , service .Namespace , service .Name , service .Port )
221
- tcp .signaler .NeedPods (serviceRef , service .Port )
221
+ tcp .signaler .NeedPods (service . NamespacedName , service .Port )
222
222
223
223
// only send NeedPods once
224
224
sent_need_pods = true
@@ -262,7 +262,7 @@ func (tcp *tcpUnidlerSocket) ProxyLoop(service proxy.ServicePortName, svcInfo *u
262
262
glog .V (4 ).Infof ("unidling TCP proxy start/reset for service %s/%s:%s" , service .Namespace , service .Name , service .Port )
263
263
264
264
var cont bool
265
- if allConns , cont = tcp .awaitAwakening (service , svcInfo . ServiceRef , loadBalancer , inConns , endpointsAvail ); ! cont {
265
+ if allConns , cont = tcp .awaitAwakening (service , loadBalancer , inConns , endpointsAvail ); ! cont {
266
266
break
267
267
}
268
268
}
@@ -342,7 +342,7 @@ func (udp *udpUnidlerSocket) readFromSock(buffer []byte, svcInfo *userspace.Serv
342
342
func (udp * udpUnidlerSocket ) sendWakeup (svcPortName proxy.ServicePortName , svcInfo * userspace.ServiceInfo ) * time.Timer {
343
343
timeoutTimer := time .NewTimer (needPodsWaitTimeout )
344
344
glog .V (4 ).Infof ("unidling proxy sent unidle event to wake up service %s/%s:%s" , svcPortName .Namespace , svcPortName .Name , svcPortName .Port )
345
- udp .signaler .NeedPods (svcInfo . ServiceRef , svcPortName .Port )
345
+ udp .signaler .NeedPods (svcPortName . NamespacedName , svcPortName .Port )
346
346
347
347
return timeoutTimer
348
348
}
0 commit comments