Skip to content

Commit

Permalink
fix: .helm/Chart.yaml chart name redefines project name from werf.yaml
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
distorhead committed Apr 19, 2022
1 parent 4ab24cc commit cda82f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/deploy/helm/chart_extender/werf_chart.go
Expand Up @@ -107,7 +107,7 @@ func (wc *WerfChart) ChartLoaded(files []*chart.ChartExtenderBufferedFile) error

var opts helpers.GetHelmChartMetadataOptions
if wc.werfConfig != nil {
opts.OverrideName = wc.werfConfig.Meta.Project
opts.DefaultName = wc.werfConfig.Meta.Project
}
opts.DefaultVersion = "1.0.0"
wc.HelmChart.Metadata = helpers.AutosetChartMetadata(wc.HelmChart.Metadata, opts)
Expand Down

0 comments on commit cda82f7

Please sign in to comment.