File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 88 "os/exec"
99 "path/filepath"
1010 "strings"
11+ "syscall"
1112
1213 log "github.com/sirupsen/logrus"
1314 "sigs.k8s.io/yaml"
@@ -122,7 +123,15 @@ func Version() (string, error) {
122123 cmd := exec .Command ("helm" , "version" , "--client" , "--short" )
123124 // example version output:
124125 // short: "v3.3.1+g249e521"
125- version , err := executil .RunWithRedactor (cmd , redactor )
126+ opts := executil.ExecRunOpts {
127+ TimeoutBehavior : executil.TimeoutBehavior {
128+ Signal : syscall .SIGTERM ,
129+ ShouldWait : true ,
130+ },
131+ SkipErrorLogging : false ,
132+ CaptureStderr : true ,
133+ }
134+ version , err := executil .RunWithExecRunOpts (cmd , opts )
126135 if err != nil {
127136 return "" , fmt .Errorf ("could not get helm version: %w" , err )
128137 }
You can’t perform that action at this time.
0 commit comments