mirror of
https://github.com/rancher/rke.git
synced 2025-09-16 15:10:12 +00:00
K8s Vendor update to 1.10.5
This commit is contained in:
4
vendor/k8s.io/apimachinery/pkg/runtime/error.go
generated
vendored
4
vendor/k8s.io/apimachinery/pkg/runtime/error.go
generated
vendored
@@ -94,8 +94,6 @@ type missingVersionErr struct {
|
||||
data string
|
||||
}
|
||||
|
||||
// IsMissingVersion returns true if the error indicates that the provided object
|
||||
// is missing a 'Version' field.
|
||||
func NewMissingVersionErr(data string) error {
|
||||
return &missingVersionErr{data}
|
||||
}
|
||||
@@ -104,6 +102,8 @@ func (k *missingVersionErr) Error() string {
|
||||
return fmt.Sprintf("Object 'apiVersion' is missing in '%s'", k.data)
|
||||
}
|
||||
|
||||
// IsMissingVersion returns true if the error indicates that the provided object
|
||||
// is missing a 'Version' field.
|
||||
func IsMissingVersion(err error) bool {
|
||||
if err == nil {
|
||||
return false
|
||||
|
Reference in New Issue
Block a user