// clientGet is a wrapper around f.Client.Get that performs retries in case of retryable errors
clientGet is a wrapper around f.Client.Get that performs retries in case of retryable errors
// clientGet is a wrapper around f . Client . Get that performs retries in case of retryable errors
func clientGet(key types.NamespacedName, obj runtime.Object) error {
	f := framework.Global
	return wait.PollImmediate(4*time.Second, 60*time.Second, func() (bool, error) {
		if err := f.Client.Get(goctx.TODO(), key, obj); err != nil {
			if isRetryableError(err) {
				Logf("Error during client get is retried: '%s'", err.Error())
				return false, nil
			}
			Logf("Error during client get is not retried: '%s'", err.Error())
			return true, err
		}
		return true, nil
	})
}
func clientGet ( key types . NamespacedName , obj runtime . Object ) error { f := framework . Global return wait . PollImmediate ( 4 * time . Second , 60 * time . Second , func ( ) ( bool , error ) { if err := f . Client . Get ( goctx . TODO ( ) , key , obj ) ; err != nil { if isRetryableError ( err ) { Logf ( " " , err . Error ( ) ) return false , nil } Logf ( " " , err . Error ( ) ) return true , err } return true , nil } ) }
clientGet is a wrapper around f.Client.Get that performs retries in case of retryable errors
clientGet is a wrapper around f . Client . Get that performs retries in case of retryable errors
// check if we have an error that we want to retry // return all other errors directly // successful call