Merge pull request #6444 from mumoshu/fix-no-hooks-flag

fix(v3): `helm template` output should include hooks by default
pull/6549/head
Taylor Thomas 5 years ago committed by GitHub
commit 0ca3840714
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -56,6 +56,12 @@ func newTemplateCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
return err
}
fmt.Fprintln(out, strings.TrimSpace(rel.Manifest))
if !client.DisableHooks {
for _, m := range rel.Hooks {
fmt.Fprintf(out, "---\n# Source: %s\n%s\n", m.Path, m.Manifest)
}
}
return nil
},
}

Loading…
Cancel
Save