Skip to content

Commit 3ce597a

Browse files
jlegroneunguiculus
authored andcommitted
feat(lint): validate values files in ci directory (#66)
Signed-off-by: Jacob LeGrone <[email protected]>
1 parent 2286037 commit 3ce597a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pkg/chart/chart.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,13 @@ func (t *Testing) LintChart(chart string, valuesFiles []string) TestResult {
284284
result.Error = err
285285
return result
286286
}
287-
if err := t.linter.YamlLint(chartYaml, t.config.LintConf); err != nil {
288-
result.Error = err
289-
return result
290-
}
291-
if err := t.linter.YamlLint(valuesYaml, t.config.LintConf); err != nil {
292-
result.Error = err
293-
return result
287+
288+
yamlFiles := append([]string{chartYaml, valuesYaml}, valuesFiles...)
289+
for _, yamlFile := range yamlFiles {
290+
if err := t.linter.YamlLint(yamlFile, t.config.LintConf); err != nil {
291+
result.Error = err
292+
return result
293+
}
294294
}
295295

296296
if t.config.ValidateMaintainers {

0 commit comments

Comments
 (0)