MCPcopy Index your code
hub / github.com/devspace-sh/devspace / ChartNameAndRepo

Function ChartNameAndRepo

pkg/devspace/helm/generic/generic.go:101–110  ·  view source on GitHub ↗
(helmConfig *latest.HelmConfig)

Source from the content-addressed store, hash-verified

99}
100
101func 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}

Callers 2

InstallChartMethod · 0.92
TemplateMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected