MCPcopy
hub / github.com/roboll/helmfile / exec

Method exec

pkg/helmexec/exec.go:495–507  ·  view source on GitHub ↗
(args []string, env map[string]string)

Source from the content-addressed store, hash-verified

493}
494
495func (helm *execer) exec(args []string, env map[string]string) ([]byte, error) {
496 cmdargs := args
497 if len(helm.extra) > 0 {
498 cmdargs = append(cmdargs, helm.extra...)
499 }
500 if helm.kubeContext != "" {
501 cmdargs = append([]string{"--kube-context", helm.kubeContext}, cmdargs...)
502 }
503 cmd := fmt.Sprintf("exec: %s %s", helm.helmBinary, strings.Join(cmdargs, " "))
504 helm.logger.Debug(cmd)
505 outBytes, err := helm.runner.Execute(helm.helmBinary, cmdargs, env)
506 return outBytes, err
507}
508
509func (helm *execer) execStdIn(args []string, env map[string]string, stdin io.Reader) ([]byte, error) {
510 cmdargs := args

Callers 15

AddRepoMethod · 0.95
UpdateRepoMethod · 0.95
BuildDepsMethod · 0.95
UpdateDepsMethod · 0.95
SyncReleaseMethod · 0.95
ReleaseStatusMethod · 0.95
ListMethod · 0.95
DecryptSecretMethod · 0.95
TemplateReleaseMethod · 0.95
DiffReleaseMethod · 0.95
LintMethod · 0.95
FetchMethod · 0.95

Calls 1

ExecuteMethod · 0.65

Tested by 1

Test_execFunction · 0.64