@@ -50,7 +50,7 @@ type Waiter interface {
50
50
// WaitForStaticPodControlPlaneHashes fetches sha256 hashes for the control plane static pods
51
51
WaitForStaticPodControlPlaneHashes (nodeName string ) (map [string ]string , error )
52
52
// WaitForHealthyKubelet blocks until the kubelet /healthz endpoint returns 'ok'
53
- WaitForHealthyKubelet (initalTimeout time.Duration , healthzEndpoint string ) error
53
+ WaitForHealthyKubelet (initialTimeout time.Duration , healthzEndpoint string ) error
54
54
// WaitForKubeletAndFunc is a wrapper for WaitForHealthyKubelet that also blocks for a function
55
55
WaitForKubeletAndFunc (f func () error ) error
56
56
// SetTimeout adjusts the timeout to the specified duration
@@ -133,9 +133,9 @@ func (w *KubeWaiter) WaitForPodToDisappear(podName string) error {
133
133
}
134
134
135
135
// WaitForHealthyKubelet blocks until the kubelet /healthz endpoint returns 'ok'
136
- func (w * KubeWaiter ) WaitForHealthyKubelet (initalTimeout time.Duration , healthzEndpoint string ) error {
137
- time .Sleep (initalTimeout )
138
- fmt .Printf ("[kubelet-check] Initial timeout of %v passed.\n " , initalTimeout )
136
+ func (w * KubeWaiter ) WaitForHealthyKubelet (initialTimeout time.Duration , healthzEndpoint string ) error {
137
+ time .Sleep (initialTimeout )
138
+ fmt .Printf ("[kubelet-check] Initial timeout of %v passed.\n " , initialTimeout )
139
139
return TryRunCommand (func () error {
140
140
client := & http.Client {Transport : netutil .SetOldTransportDefaults (& http.Transport {})}
141
141
resp , err := client .Get (healthzEndpoint )
0 commit comments