Skip to content

Commit 97fc3e6

Browse files
authored
Fix typos in apiclient util
fix initalTimeout to initialTimeout
1 parent 96dfa3f commit 97fc3e6

File tree

1 file changed

+4
-4
lines changed
  • cmd/kubeadm/app/util/apiclient

1 file changed

+4
-4
lines changed

cmd/kubeadm/app/util/apiclient/wait.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ type Waiter interface {
5050
// WaitForStaticPodControlPlaneHashes fetches sha256 hashes for the control plane static pods
5151
WaitForStaticPodControlPlaneHashes(nodeName string) (map[string]string, error)
5252
// 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
5454
// WaitForKubeletAndFunc is a wrapper for WaitForHealthyKubelet that also blocks for a function
5555
WaitForKubeletAndFunc(f func() error) error
5656
// SetTimeout adjusts the timeout to the specified duration
@@ -133,9 +133,9 @@ func (w *KubeWaiter) WaitForPodToDisappear(podName string) error {
133133
}
134134

135135
// 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)
139139
return TryRunCommand(func() error {
140140
client := &http.Client{Transport: netutil.SetOldTransportDefaults(&http.Transport{})}
141141
resp, err := client.Get(healthzEndpoint)

0 commit comments

Comments
 (0)