mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 18:43:34 +00:00
rebase: update K8s packages to v0.32.1
Update K8s packages in go.mod to v0.32.1 Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
7
vendor/k8s.io/apimachinery/pkg/api/errors/errors.go
generated
vendored
7
vendor/k8s.io/apimachinery/pkg/api/errors/errors.go
generated
vendored
@ -54,6 +54,7 @@ var knownReasons = map[metav1.StatusReason]struct{}{
|
||||
metav1.StatusReasonGone: {},
|
||||
metav1.StatusReasonInvalid: {},
|
||||
metav1.StatusReasonServerTimeout: {},
|
||||
metav1.StatusReasonStoreReadError: {},
|
||||
metav1.StatusReasonTimeout: {},
|
||||
metav1.StatusReasonTooManyRequests: {},
|
||||
metav1.StatusReasonBadRequest: {},
|
||||
@ -775,6 +776,12 @@ func IsUnexpectedObjectError(err error) bool {
|
||||
return err != nil && (ok || errors.As(err, &uoe))
|
||||
}
|
||||
|
||||
// IsStoreReadError determines if err is due to either failure to transform the
|
||||
// data from the storage, or failure to decode the object appropriately.
|
||||
func IsStoreReadError(err error) bool {
|
||||
return ReasonForError(err) == metav1.StatusReasonStoreReadError
|
||||
}
|
||||
|
||||
// SuggestsClientDelay returns true if this error suggests a client delay as well as the
|
||||
// suggested seconds to wait, or false if the error does not imply a wait. It does not
|
||||
// address whether the error *should* be retried, since some errors (like a 3xx) may
|
||||
|
Reference in New Issue
Block a user