Merge pull request #919 from technosophos/fix/918-fix-lint-test

fix(helm): fix linter test panic
pull/917/head
Matt Butcher 9 years ago committed by GitHub
commit eee6e143d8

@ -312,7 +312,7 @@ func ToRenderValues(chrt *chart.Chart, chrtVals *chart.Config, options ReleaseOp
vals, err := CoalesceValues(chrt, chrtVals, nil)
if err != nil {
return nil, err
return overrides, err
}
overrides["Values"] = vals

@ -55,6 +55,12 @@ func Templates(linter *support.Linter) {
options := chartutil.ReleaseOptions{Name: "testRelease", Time: timeconv.Now(), Namespace: "testNamespace"}
valuesToRender, err := chartutil.ToRenderValues(chart, chart.Values, options)
if err != nil {
// FIXME: This seems to generate a duplicate, but I can't find where the first
// error is coming from.
//linter.RunLinterRule(support.ErrorSev, err)
return
}
renderedContentMap, err := engine.New().Render(chart, valuesToRender)
renderOk := linter.RunLinterRule(support.ErrorSev, validateNoError(err))

Loading…
Cancel
Save