Skip to content
Permalink
Browse files
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>
  • Loading branch information
distorhead committed Apr 19, 2022
1 parent 4ab24cc commit cda82f729dd7bf3d3f73ab91c01ea1a0b5e0a9b3
Showing with 1 addition and 1 deletion.
  1. +1 −1 pkg/deploy/helm/chart_extender/werf_chart.go
@@ -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)

0 comments on commit cda82f7

Please sign in to comment.