(ctx context.Context)
| 89 | } |
| 90 | |
| 91 | func (c *client) ensureHelmBinary(ctx context.Context) error { |
| 92 | if c.helmPath != "" { |
| 93 | return nil |
| 94 | } |
| 95 | |
| 96 | var err error |
| 97 | c.helmPath, err = c.downloader.EnsureCommand(ctx) |
| 98 | return err |
| 99 | } |
| 100 | |
| 101 | func ChartNameAndRepo(helmConfig *latest.HelmConfig) (string, string) { |
| 102 | chartName := strings.TrimSpace(helmConfig.Chart.Name) |