@@ -52,7 +52,7 @@ type Controller struct {
52
52
ServiceClient corev1client.ServicesGetter
53
53
NamespaceClient corev1client.NamespacesGetter
54
54
EventClient corev1client.EventsGetter
55
- healthClient rest.Interface
55
+ readyzClient rest.Interface
56
56
57
57
ServiceClusterIPRegistry rangeallocation.RangeRegistry
58
58
ServiceClusterIPRange net.IPNet
@@ -85,7 +85,7 @@ type Controller struct {
85
85
}
86
86
87
87
// NewBootstrapController returns a controller for watching the core capabilities of the master
88
- func (c * completedConfig ) NewBootstrapController (legacyRESTStorage corerest.LegacyRESTStorage , serviceClient corev1client.ServicesGetter , nsClient corev1client.NamespacesGetter , eventClient corev1client.EventsGetter , healthClient rest.Interface ) * Controller {
88
+ func (c * completedConfig ) NewBootstrapController (legacyRESTStorage corerest.LegacyRESTStorage , serviceClient corev1client.ServicesGetter , nsClient corev1client.NamespacesGetter , eventClient corev1client.EventsGetter , readyzClient rest.Interface ) * Controller {
89
89
_ , publicServicePort , err := c .GenericConfig .SecureServing .HostPort ()
90
90
if err != nil {
91
91
klog .Fatalf ("failed to get listener address: %v" , err )
@@ -97,7 +97,7 @@ func (c *completedConfig) NewBootstrapController(legacyRESTStorage corerest.Lega
97
97
ServiceClient : serviceClient ,
98
98
NamespaceClient : nsClient ,
99
99
EventClient : eventClient ,
100
- healthClient : healthClient ,
100
+ readyzClient : readyzClient ,
101
101
102
102
EndpointReconciler : c .ExtraConfig .EndpointReconcilerConfig .Reconciler ,
103
103
EndpointInterval : c .ExtraConfig .EndpointReconcilerConfig .Interval ,
@@ -211,7 +211,7 @@ func (c *Controller) RunKubernetesService(ch chan struct{}) {
211
211
// wait until process is ready
212
212
wait .PollImmediateUntil (100 * time .Millisecond , func () (bool , error ) {
213
213
var code int
214
- c .healthClient .Get ().AbsPath ("/healthz " ).Do (context .TODO ()).StatusCode (& code )
214
+ c .readyzClient .Get ().AbsPath ("/readyz " ).Do (context .TODO ()).StatusCode (& code )
215
215
return code == http .StatusOK , nil
216
216
}, ch )
217
217
0 commit comments