Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
ca23180b
Unverified
Commit
ca23180b
authored
Dec 28, 2017
by
Matthew Fisher
Committed by
GitHub
Dec 28, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3302 from distorhead/no_resource_found_error_message_fix
Show kind in resource-not-found-in-release error
parents
8a59aed5
13cb8d82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
client.go
pkg/kube/client.go
+2
-1
No files found.
pkg/kube/client.go
View file @
ca23180b
...
@@ -274,7 +274,8 @@ func (c *Client) Update(namespace string, originalReader, targetReader io.Reader
...
@@ -274,7 +274,8 @@ func (c *Client) Update(namespace string, originalReader, targetReader io.Reader
originalInfo
:=
original
.
Get
(
info
)
originalInfo
:=
original
.
Get
(
info
)
if
originalInfo
==
nil
{
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
{
if
err
:=
updateResource
(
c
,
info
,
originalInfo
.
Object
,
force
,
recreate
);
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment