From a8d12a744fc9456f953d171e2a0db9c7751ebeb1 Mon Sep 17 00:00:00 2001 From: Dong Gang Date: Thu, 15 Oct 2020 10:16:41 +0800 Subject: [PATCH] fix the error caused by helm lint not pulling values outside of the default values file for schema validation Signed-off-by: Dong Gang --- pkg/lint/rules/values.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/lint/rules/values.go b/pkg/lint/rules/values.go index c596687c5..189012650 100644 --- a/pkg/lint/rules/values.go +++ b/pkg/lint/rules/values.go @@ -71,7 +71,7 @@ func validateValuesFile(valuesPath string, overrides map[string]interface{}) err // We could change that. For now, though, we retain that strategy, and thus can // coalesce tables (like reuse-values does) instead of doing the full chart // CoalesceValues. - values = chartutil.CoalesceTables(values, overrides) + values = chartutil.CoalesceTables(overrides, values) ext := filepath.Ext(valuesPath) schemaPath := valuesPath[:len(valuesPath)-len(ext)] + ".schema.json"