Switches to a model where testers provide flat Checks and Cases (as opposed to Cases that nest Checks).
This is feasible with the introduction of the new pkg/extract library, which allows us to extract generic objects from paths in the rendered values that are now stored directly in the *checker.TestContext. As a result of this, you can now write NamedChecks (previously TemplateChecks) that are parametrized by the values.yaml via the use of checker.MustRenderValues / checker.RenderValues, which solves the need that the previous ValueChecks solved.
Switches to a model where testers provide flat Checks and Cases (as opposed to Cases that nest Checks).
This is feasible with the introduction of the new
pkg/extract
library, which allows us to extract generic objects from paths in the rendered values that are now stored directly in the*checker.TestContext
. As a result of this, you can now write NamedChecks (previously TemplateChecks) that are parametrized by thevalues.yaml
via the use ofchecker.MustRenderValues / checker.RenderValues
, which solves the need that the previousValueChecks
solved.This is a big breaking change.