diff --git a/pkg/event/bus.go b/pkg/event/bus.go index 044325d5..ffe63bc3 100644 --- a/pkg/event/bus.go +++ b/pkg/event/bus.go @@ -41,7 +41,8 @@ type Bus struct { func (bus *Bus) Trigger(evt string, evtErr error, context map[string]interface{}) (bool, error) { if bus.Runner == nil { bus.Runner = helmexec.ShellRunner{ - Dir: bus.BasePath, + Dir: bus.BasePath, + Logger: bus.Logger, } } diff --git a/test/integration/happypath.yaml b/test/integration/happypath.yaml index 03fea81b..9d1401c7 100644 --- a/test/integration/happypath.yaml +++ b/test/integration/happypath.yaml @@ -19,6 +19,14 @@ releases: set: - name: ingress.enabled value: false + hooks: + - events: ["prepare", "cleanup"] + showlogs: true + command: "echo" + args: + - "{{`{{.Environment.Name}}`}}" + - "{{`{{.Release.Name}}`}}" + - "{{`{{.HelmfileCommand}}`}}" - name: raw chart: incubator/raw