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
608fd731
Commit
608fd731
authored
Aug 30, 2017
by
DoctorZK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(tiller): fix a warning bug in hook annotation
parent
8befd50c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
hooks.go
pkg/tiller/hooks.go
+6
-5
No files found.
pkg/tiller/hooks.go
View file @
608fd731
...
...
@@ -171,17 +171,18 @@ func (file *manifestFile) sort(result *result) error {
DeletePolicies
:
[]
release
.
Hook_DeletePolicy
{},
}
is
K
nownHook
:=
false
is
Unk
nownHook
:=
false
for
_
,
hookType
:=
range
strings
.
Split
(
hookTypes
,
","
)
{
hookType
=
strings
.
ToLower
(
strings
.
TrimSpace
(
hookType
))
e
,
ok
:=
events
[
hookType
]
if
ok
{
is
K
nownHook
=
true
h
.
Events
=
append
(
h
.
Events
,
e
)
if
!
ok
{
is
Unk
nownHook
=
true
break
}
h
.
Events
=
append
(
h
.
Events
,
e
)
}
if
!
isK
nownHook
{
if
isUnk
nownHook
{
log
.
Printf
(
"info: skipping unknown hook: %q"
,
hookTypes
)
continue
}
...
...
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