mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 04:32:37 +00:00
Move some test-only code into the test
This commit is contained in:
@@ -317,15 +317,6 @@ func NewProxier(loadBalancer LoadBalancer, address string) *Proxier {
|
||||
}
|
||||
}
|
||||
|
||||
// StopProxy stops the proxy for the named service.
|
||||
func (proxier *Proxier) StopProxy(service string) error {
|
||||
info, found := proxier.getServiceInfo(service)
|
||||
if !found {
|
||||
return fmt.Errorf("unknown service: %s", service)
|
||||
}
|
||||
return proxier.stopProxy(service, info)
|
||||
}
|
||||
|
||||
// This assumes proxier.mu is not locked.
|
||||
func (proxier *Proxier) stopProxy(service string, info *serviceInfo) error {
|
||||
proxier.mu.Lock()
|
||||
|
Reference in New Issue
Block a user