func (w *KubeWaiter) WaitForStaticPodHashChange(nodeName, component, previousHash string) error {
	return wait.PollImmediate(kubeadmconstants.APICallRetryInterval, w.timeout, func() (bool, error) {

		hash, err := getStaticPodSingleHash(w.client, nodeName, component)
		if err != nil {
			return false, nil
		}
		// We should continue polling until the UID changes
		if hash == previousHash {
			return false, nil
		}

		return true, nil
	})
}
// WaitForStaticPodHashChange blocks until it timeouts or notices that the Mirror Pod (for the Static Pod, respectively) has changed
// This implicitly means this function blocks until the kubelet has restarted the Static Pod in question
WaitForStaticPodHashChange blocks until it timeouts or notices that the Mirror Pod (for the Static Pod, respectively) has changed
This implicitly means this function blocks until the kubelet has restarted the Static Pod in question
// WaitForStaticPodHashChange blocks until it timeouts or notices that the Mirror Pod ( for the Static Pod respectively ) has changed // This implicitly means this function blocks until the kubelet has restarted the Static Pod in question
func (w *KubeWaiter) WaitForStaticPodHashChange(nodeName, component, previousHash string) error {
	return wait.PollImmediate(kubeadmconstants.APICallRetryInterval, w.timeout, func() (bool, error) {
		hash, err := getStaticPodSingleHash(w.client, nodeName, component)
		if err != nil {
			return false, nil
		}
		if hash == previousHash {
			return false, nil
		}
		return true, nil
	})
}
func ( w * KubeWaiter ) WaitForStaticPodHashChange ( nodeName , component , previousHash string ) error { return wait . PollImmediate ( kubeadmconstants . APICallRetryInterval , w . timeout , func ( ) ( bool , error ) { hash , err := getStaticPodSingleHash ( w . client , nodeName , component ) if err != nil { return false , nil } if hash == previousHash { return false , nil } return true , nil } ) }
WaitForStaticPodHashChange blocks until it timeouts or notices that the Mirror Pod (for the Static Pod, respectively) has changed
This implicitly means this function blocks until the kubelet has restarted the Static Pod in question
WaitForStaticPodHashChange blocks until it timeouts or notices that the Mirror Pod ( for the Static Pod respectively ) has changed This implicitly means this function blocks until the kubelet has restarted the Static Pod in question
// We should continue polling until the UID changes