mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-04 04:14:38 +02:00
Make helmfile respect signals send by kill command (not only Ctrl+C in terminal) (#750)
Fixes #746 Signed-off-by: Dmitry Chepurovskiy <me@dm3ch.net> Signed-off-by: yxxhero <aiopsclub@163.com> Co-authored-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
co-authored by
yxxhero
parent
3d0f0afe3a
commit
aa5be82834
@@ -1,6 +1,7 @@
|
||||
package event
|
||||
|
||||
import (
|
||||
goContext "context"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
@@ -46,6 +47,9 @@ func (bus *Bus) Trigger(evt string, evtErr error, context map[string]interface{}
|
||||
bus.Runner = helmexec.ShellRunner{
|
||||
Dir: bus.BasePath,
|
||||
Logger: bus.Logger,
|
||||
// It would be better to pass app.Ctx here, but it requires a lot of work.
|
||||
// It seems that this code only for running hooks, which took not to long time as helm.
|
||||
Ctx: goContext.TODO(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user