vendor: bump to kube 1.10/master
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
a85ea609db
commit
f317ffce5b
535 changed files with 52955 additions and 17528 deletions
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue