From 2c1fd772d46d1bdc93c46e7c3c7ef64ec871c924 Mon Sep 17 00:00:00 2001 From: Lev Semin Date: Sun, 20 Feb 2022 13:28:31 +0200 Subject: [PATCH] pass chart version for linting --- client.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index 86d92f9c..8d19bf26 100644 --- a/client.go +++ b/client.go @@ -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 }