diff --git a/task/error.go b/task/error.go index 2b840ae3..5063de5d 100644 --- a/task/error.go +++ b/task/error.go @@ -327,23 +327,3 @@ func (e *QuotaExceeded) Retry() (r bool) { r = true return } - -// NotTerminated report pod/container not terminated. -type NotTerminated struct { - Kind string - Name string -} - -func (e *NotTerminated) Error() string { - return fmt.Sprintf("%s: '%s' not terminated as expected.", e.Kind, e.Name) -} - -func (e *NotTerminated) Is(err error) (matched bool) { - var inst *NotTerminated - matched = errors.As(err, &inst) - return -} - -func (e *NotTerminated) Retry() (r bool) { - return -}