Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsResourceExpired (0.25 sec)

  1. 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)
  2. 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)
Back to top