diff --git a/cmd/helm/testdata/testcharts/compressedchart-0.1.0.tar.gz b/cmd/helm/testdata/testcharts/compressedchart-0.1.0.tar.gz new file mode 100644 index 000000000..3c9c24d76 Binary files /dev/null and b/cmd/helm/testdata/testcharts/compressedchart-0.1.0.tar.gz differ diff --git a/pkg/action/lint.go b/pkg/action/lint.go index f3ca5ed88..c216c5832 100644 --- a/pkg/action/lint.go +++ b/pkg/action/lint.go @@ -77,7 +77,7 @@ func lintChart(path string, vals map[string]interface{}, namespace string, stric var chartPath string linter := support.Linter{} - if strings.HasSuffix(path, ".tgz") { + if strings.HasSuffix(path, ".tgz") || strings.HasSuffix(path, ".tar.gz") { tempDir, err := ioutil.TempDir("", "helm-lint") if err != nil { return linter, errors.Wrap(err, "unable to create temp dir to extract tarball") diff --git a/pkg/action/lint_test.go b/pkg/action/lint_test.go index b40501cf4..68d3c4bb4 100644 --- a/pkg/action/lint_test.go +++ b/pkg/action/lint_test.go @@ -48,6 +48,10 @@ func TestLintChart(t *testing.T) { name: "archived-chart-path-with-hyphens", chartPath: "../../cmd/helm/testdata/testcharts/compressedchart-with-hyphens-0.1.0.tgz", }, + { + name: "archived-tar-gz-chart-path", + chartPath: "../../cmd/helm/testdata/testcharts/compressedchart-0.1.0.tar.gz", + }, { name: "invalid-archived-chart-path", chartPath: "../../cmd/helm/testdata/testcharts/invalidcompressedchart0.1.0.tgz",