master shutdown hook should use correct constant for reconciling

To prevent accidental drift, use the same constant we use on startup
in the master endpoint reconciler shudown method.
pull/564/head
Clayton Coleman 2019-01-14 13:16:44 -05:00
parent a2daf66a0d
commit 07022f2043
No known key found for this signature in database
GPG Key ID: 3D16906B4F1C5CB3
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ func (c *Controller) Stop() {
go func() {
defer close(finishedReconciling)
klog.Infof("Shutting down kubernetes service endpoint reconciler")
if err := c.EndpointReconciler.StopReconciling("kubernetes", c.PublicIP, endpointPorts); err != nil {
if err := c.EndpointReconciler.StopReconciling(kubernetesServiceName, c.PublicIP, endpointPorts); err != nil {
klog.Error(err)
}
}()