Fix panic on hook since v0.126.0 (#1448)

Fixes #1445
This commit is contained in:
Yusuke Kuoka 2020-09-01 10:37:21 +09:00 committed by GitHub
parent 19d79427a1
commit d3daea3137
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -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,
}
}

View File

@ -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