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
b9ef8dbe
Commit
b9ef8dbe
authored
Apr 03, 2017
by
Jonathan Chauncey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(hooks): Change annotation from hookWeight to hook-weight
parent
91e7f6bf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
hooks.go
pkg/hooks/hooks.go
+1
-1
hooks.go
pkg/tiller/hooks.go
+1
-2
No files found.
pkg/hooks/hooks.go
View file @
b9ef8dbe
...
@@ -24,7 +24,7 @@ import (
...
@@ -24,7 +24,7 @@ import (
const
HookAnno
=
"helm.sh/hook"
const
HookAnno
=
"helm.sh/hook"
// HookWeightAnno is the label name for a hook weight
// HookWeightAnno is the label name for a hook weight
const
HookWeightAnno
=
"helm.sh/hook
W
eight"
const
HookWeightAnno
=
"helm.sh/hook
-w
eight"
// Types of hooks
// Types of hooks
const
(
const
(
...
...
pkg/tiller/hooks.go
View file @
b9ef8dbe
...
@@ -111,9 +111,8 @@ func sortManifests(files map[string]string, apis chartutil.VersionSet, sort Sort
...
@@ -111,9 +111,8 @@ func sortManifests(files map[string]string, apis chartutil.VersionSet, sort Sort
continue
continue
}
}
hw
:=
0
hws
,
_
:=
sh
.
Metadata
.
Annotations
[
hooks
.
HookWeightAnno
]
hws
,
_
:=
sh
.
Metadata
.
Annotations
[
hooks
.
HookWeightAnno
]
hw
,
err
=
strconv
.
Atoi
(
hws
)
hw
,
err
:
=
strconv
.
Atoi
(
hws
)
if
err
!=
nil
{
if
err
!=
nil
{
hw
=
0
hw
=
0
}
}
...
...
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