(helmConfig *latest.HelmConfig)
| 99 | } |
| 100 | |
| 101 | func ChartNameAndRepo(helmConfig *latest.HelmConfig) (string, string) { |
| 102 | chartName := strings.TrimSpace(helmConfig.Chart.Name) |
| 103 | chartRepo := helmConfig.Chart.RepoURL |
| 104 | if strings.HasPrefix(chartName, "stable/") && chartRepo == "" { |
| 105 | chartName = chartName[7:] |
| 106 | chartRepo = stableChartRepo |
| 107 | } |
| 108 | |
| 109 | return chartName, chartRepo |
| 110 | } |
no outgoing calls
no test coverage detected