mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
Modify IsInvalidObj name and description
This commit is contained in:
parent
922477f987
commit
65f772d050
@ -110,7 +110,7 @@ func IsTestFailed(err error) bool {
|
|||||||
return isErrCode(err, ErrCodeResourceVersionConflicts)
|
return isErrCode(err, ErrCodeResourceVersionConflicts)
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsInvalidUID returns true if and only if err is invalid UID error
|
// IsInvalidObj returns true if and only if err is invalid error
|
||||||
func IsInvalidObj(err error) bool {
|
func IsInvalidObj(err error) bool {
|
||||||
return isErrCode(err, ErrCodeInvalidObj)
|
return isErrCode(err, ErrCodeInvalidObj)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user