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
0059d5a3
Commit
0059d5a3
authored
Jan 11, 2017
by
José Armesto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Logging real name of the failing hook
parent
6d6e88a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
release_server.go
pkg/tiller/release_server.go
+2
-2
No files found.
pkg/tiller/release_server.go
View file @
0059d5a3
...
@@ -871,14 +871,14 @@ func (s *ReleaseServer) execHook(hs []*release.Hook, name, namespace, hook strin
...
@@ -871,14 +871,14 @@ func (s *ReleaseServer) execHook(hs []*release.Hook, name, namespace, hook strin
b
:=
bytes
.
NewBufferString
(
h
.
Manifest
)
b
:=
bytes
.
NewBufferString
(
h
.
Manifest
)
if
err
:=
kubeCli
.
Create
(
namespace
,
b
);
err
!=
nil
{
if
err
:=
kubeCli
.
Create
(
namespace
,
b
);
err
!=
nil
{
log
.
Printf
(
"warning: Release %q
pre-install %s failed: %s"
,
name
,
h
.
Path
,
err
)
log
.
Printf
(
"warning: Release %q
%s %s failed: %s"
,
name
,
hook
,
h
.
Path
,
err
)
return
err
return
err
}
}
// No way to rewind a bytes.Buffer()?
// No way to rewind a bytes.Buffer()?
b
.
Reset
()
b
.
Reset
()
b
.
WriteString
(
h
.
Manifest
)
b
.
WriteString
(
h
.
Manifest
)
if
err
:=
kubeCli
.
WatchUntilReady
(
namespace
,
b
,
timeout
);
err
!=
nil
{
if
err
:=
kubeCli
.
WatchUntilReady
(
namespace
,
b
,
timeout
);
err
!=
nil
{
log
.
Printf
(
"warning: Release %q
pre-install %s could not complete: %s"
,
name
,
h
.
Path
,
err
)
log
.
Printf
(
"warning: Release %q
%s %s could not complete: %s"
,
name
,
hook
,
h
.
Path
,
err
)
return
err
return
err
}
}
h
.
LastRun
=
timeconv
.
Now
()
h
.
LastRun
=
timeconv
.
Now
()
...
...
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