Merge pull request #3302 from distorhead/no_resource_found_error_message_fix

Show kind in resource-not-found-in-release error
pull/3239/merge
Matthew Fisher 7 years ago committed by GitHub
commit ca23180bd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -274,7 +274,8 @@ func (c *Client) Update(namespace string, originalReader, targetReader io.Reader
originalInfo := original.Get(info)
if originalInfo == nil {
return fmt.Errorf("no resource with the name %q found", info.Name)
kind := info.Mapping.GroupVersionKind.Kind
return fmt.Errorf("no %s with the name %q found", kind, info.Name)
}
if err := updateResource(c, info, originalInfo.Object, force, recreate); err != nil {

Loading…
Cancel
Save