fmt
This commit is contained in:
parent
709195848a
commit
371ca7f752
|
|
@ -14,14 +14,14 @@ const (
|
|||
)
|
||||
|
||||
type execer struct {
|
||||
writer io.Writer
|
||||
writer io.Writer
|
||||
kubeContext string
|
||||
extra []string
|
||||
extra []string
|
||||
}
|
||||
|
||||
func NewHelmExec(writer io.Writer, kubeContext string) Interface {
|
||||
return &execer{
|
||||
writer: writer,
|
||||
writer: writer,
|
||||
kubeContext: kubeContext,
|
||||
}
|
||||
}
|
||||
|
|
@ -75,7 +75,7 @@ func (helm *execer) exec(args ...string) ([]byte, error) {
|
|||
}
|
||||
if helm.kubeContext != "" {
|
||||
cmdargs = append(cmdargs, "--kube-context", helm.kubeContext)
|
||||
}
|
||||
}
|
||||
if helm.writer != nil {
|
||||
helm.writer.Write([]byte(fmt.Sprintf("exec: helm %s\n", strings.Join(cmdargs, " "))))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
package state
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"sync"
|
||||
"errors"
|
||||
|
||||
"github.com/roboll/helmfile/helmexec"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue