Skip to content

Commit cda82f7

Browse files
committed
fix: .helm/Chart.yaml chart name redefines project name from werf.yaml
By default werf uses `project` directive value as a `{{ .Chart.Name }}` when no .helm/Chart.yaml exist. User can redefine chart name with the following `.helm/Chart.yaml`: ``` apiVersion: v2 name: custom-chart-name ``` Fixes #4376 Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
1 parent 4ab24cc commit cda82f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/deploy/helm/chart_extender/werf_chart.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func (wc *WerfChart) ChartLoaded(files []*chart.ChartExtenderBufferedFile) error
107107

108108
var opts helpers.GetHelmChartMetadataOptions
109109
if wc.werfConfig != nil {
110-
opts.OverrideName = wc.werfConfig.Meta.Project
110+
opts.DefaultName = wc.werfConfig.Meta.Project
111111
}
112112
opts.DefaultVersion = "1.0.0"
113113
wc.HelmChart.Metadata = helpers.AutosetChartMetadata(wc.HelmChart.Metadata, opts)

0 commit comments

Comments
 (0)