Skip to content

Commit

Permalink
Merge pull request #60 from semin-lev/fix/chart-version-is-ignored
Browse files Browse the repository at this point in the history
Use chart version from ChartSpec in LintChart
  • Loading branch information
jkmw authored Mar 3, 2022
2 parents b21760f + 2c1fd77 commit d654f20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,9 @@ func (c *HelmClient) TemplateChart(spec *ChartSpec) ([]byte, error) {

// LintChart fetches a chart using the provided ChartSpec 'spec' and lints it's values.
func (c *HelmClient) LintChart(spec *ChartSpec) error {
_, chartPath, err := c.getChart(spec.ChartName, &action.ChartPathOptions{})
_, chartPath, err := c.getChart(spec.ChartName, &action.ChartPathOptions{
Version: spec.Version,
})
if err != nil {
return err
}
Expand Down

0 comments on commit d654f20

Please sign in to comment.