- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for IsResourceExpired (0.13 sec)
-
staging/src/k8s.io/cli-runtime/pkg/resource/helper.go
// making sure to retain the StatusError type when applicable. func EnhanceListError(err error, opts metav1.ListOptions, subj string) error { if apierrors.IsResourceExpired(err) { return err } if apierrors.IsBadRequest(err) || apierrors.IsNotFound(err) { if se, ok := err.(*apierrors.StatusError); ok { // modify the message without hiding this is an API error
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 26 03:45:13 UTC 2022 - 10.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go
return true } return false } // IsResourceExpired is true if the error indicates the resource has expired and the current action is // no longer possible. // It supports wrapped errors and returns false when the error is nil. func IsResourceExpired(err error) bool { return ReasonForError(err) == metav1.StatusReasonExpired }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 21 03:41:32 UTC 2022 - 30.5K bytes - Viewed (0)