returnnil,fmt.Errorf("unable to locate fully qualified kind for %v: found %v when registering for %v",reflect.TypeOf(object),fqKinds,a.group.GroupVersion)
returnnil,fmt.Errorf("unable to locate fully qualified kind for %v: found %v when registering for %v",reflect.TypeOf(object),fqKinds,a.group.GroupVersion)
returnerrors.NewBadRequest(fmt.Sprintf("%s in version %s cannot be handled as a %s: %v",dataKind,version,kind,baseErr))
returnerrors.NewBadRequest(fmt.Sprintf("%s in version %v cannot be handled as a %s: %v",dataGroupVersionKind.Kind,dataGroupVersionKind.GroupVersion(),objectGroupVersionKind.Kind,baseErr))
}
}
returnerrors.NewBadRequest(fmt.Sprintf("the object provided is unrecognized (must be of type %s): %v",kind,baseErr))
returnerrors.NewBadRequest(fmt.Sprintf("the object provided is unrecognized (must be of type %s): %v",objectGroupVersionKind.Kind,baseErr))
}
}
// setSelfLink sets the self link of an object (or the child items in a list) to the base URL of the request
// setSelfLink sets the self link of an object (or the child items in a list) to the base URL of the request
returnfmt.Errorf("type %v is not registered for %q and it will be impossible to Decode it, therefore Encode will refuse to encode it.",v.Type(),destVersion)
returnfmt.Errorf("type %v is not registered for %q and it will be impossible to Decode it, therefore Encode will refuse to encode it.",v.Type(),destVersion)
returnnil,fmt.Errorf("API version %q in %q isn't supported, only supports API versions %q",gvk.GroupVersion().String(),source,registered.RegisteredGroupVersions)
returnnil,fmt.Errorf("unable to parse group/version from %q: %v",version,err)