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:
Dmitry Chepurovskiy
2023-04-29 15:25:29 +09:00
committed by GitHub
co-authored by yxxhero
parent 3d0f0afe3a
commit aa5be82834
8 changed files with 64 additions and 18 deletions
+4
View File
@@ -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(),
}
}