Commit b9ef8dbe authored by Jonathan Chauncey's avatar Jonathan Chauncey

fix(hooks): Change annotation from hookWeight to hook-weight

parent 91e7f6bf
...@@ -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/hookWeight" const HookWeightAnno = "helm.sh/hook-weight"
// Types of hooks // Types of hooks
const ( const (
......
...@@ -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
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment