(args []string, env map[string]string, stdin io.Reader)
| 507 | } |
| 508 | |
| 509 | func (helm *execer) execStdIn(args []string, env map[string]string, stdin io.Reader) ([]byte, error) { |
| 510 | cmdargs := args |
| 511 | if len(helm.extra) > 0 { |
| 512 | cmdargs = append(cmdargs, helm.extra...) |
| 513 | } |
| 514 | if helm.kubeContext != "" { |
| 515 | cmdargs = append([]string{"--kube-context", helm.kubeContext}, cmdargs...) |
| 516 | } |
| 517 | cmd := fmt.Sprintf("exec: %s %s", helm.helmBinary, strings.Join(cmdargs, " ")) |
| 518 | helm.logger.Debug(cmd) |
| 519 | outBytes, err := helm.runner.ExecuteStdIn(helm.helmBinary, cmdargs, env, stdin) |
| 520 | return outBytes, err |
| 521 | } |
| 522 | |
| 523 | func (helm *execer) azcli(name string) ([]byte, error) { |
| 524 | cmdargs := append(strings.Split("acr helm repo add --name", " "), name) |
no test coverage detected