Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisoz committed May 10, 2023
1 parent 4582cfd commit 98ab07c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/k8s/persistent_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func GetPersistentVolumeE(t testing.TestingT, options *KubectlOptions, name stri
return clientset.CoreV1().PersistentVolumes().Get(context.Background(), name, metav1.GetOptions{})
}

// WaitUntilPersistentVolumeAvailableE waits until the given Persistent Volume is the 'Available' status,
// WaitUntilPersistentVolumeAvailable waits until the given Persistent Volume is the 'Available' status,
// retrying the check for the specified amount of times, sleeping
// for the provided duration between each try.
// This will fail the test if there is an error.
Expand Down Expand Up @@ -89,14 +89,14 @@ func WaitUntilPersistentVolumeAvailableE(
},
)
if err != nil {
logger.Logf(t, "Timedout waiting for PersistentVolume to be available: %s", err)
logger.Logf(t, "Timeout waiting for PersistentVolume to be available: %s", err)
return err
}
logger.Logf(t, message)
return nil
}

// IsPersistentVolume returns true if the given PersistentVolume is available
// IsPersistentVolumeAvailable returns true if the given PersistentVolume is available
func IsPersistentVolumeAvailable(pv *corev1.PersistentVolume) bool {
return pv != nil && pv.Status.Phase == corev1.VolumeAvailable
}

0 comments on commit 98ab07c

Please sign in to comment.