mirror of https://github.com/k3s-io/k3s
Reword poll message to log a more readable message.
parent
dac0296f0b
commit
6e317762fd
|
@ -833,7 +833,7 @@ func WaitForPersistentVolumeClaimPhase(phase v1.PersistentVolumeClaimPhase, c cl
|
|||
for start := time.Now(); time.Since(start) < timeout; time.Sleep(Poll) {
|
||||
pvc, err := c.Core().PersistentVolumeClaims(ns).Get(pvcName, metav1.GetOptions{})
|
||||
if err != nil {
|
||||
Logf("Get persistent volume claim %s in failed, ignoring for %v: %v", pvcName, Poll, err)
|
||||
Logf("Failed to get claim %q, retrying in %v. Error: %v", pvcName, Poll, err)
|
||||
continue
|
||||
} else {
|
||||
if pvc.Status.Phase == phase {
|
||||
|
|
Loading…
Reference in New Issue