Merge pull request #6582 from jonasrutishauser/fix/hooks_output

Use same output format for hooks as for manifest
pull/6584/head
Taylor Thomas 5 years ago committed by GitHub
commit f8ab189515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -46,7 +46,7 @@ func newGetHooksCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
return err return err
} }
for _, hook := range res.Hooks { for _, hook := range res.Hooks {
fmt.Fprintf(out, "---\n# %s\n%s", hook.Name, hook.Manifest) fmt.Fprintf(out, "---\n# Source: %s\n%s\n", hook.Path, hook.Manifest)
} }
return nil return nil
}, },

@ -1,7 +1,8 @@
--- ---
# pre-install-hook # Source: pre-install-hook.yaml
apiVersion: v1 apiVersion: v1
kind: Job kind: Job
metadata: metadata:
annotations: annotations:
"helm.sh/hook": pre-install "helm.sh/hook": pre-install

Loading…
Cancel
Save