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

pull/2157/head
Jonathan Chauncey 7 years ago
parent 91e7f6bfd6
commit b9ef8dbe56

@ -24,7 +24,7 @@ import (
const HookAnno = "helm.sh/hook"
// HookWeightAnno is the label name for a hook weight
const HookWeightAnno = "helm.sh/hookWeight"
const HookWeightAnno = "helm.sh/hook-weight"
// Types of hooks
const (

@ -111,9 +111,8 @@ func sortManifests(files map[string]string, apis chartutil.VersionSet, sort Sort
continue
}
hw := 0
hws, _ := sh.Metadata.Annotations[hooks.HookWeightAnno]
hw, err = strconv.Atoi(hws)
hw, err := strconv.Atoi(hws)
if err != nil {
hw = 0
}

Loading…
Cancel
Save