mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
Merge pull request #919 from technosophos/fix/918-fix-lint-test
fix(helm): fix linter test panic
This commit is contained in:
commit
eee6e143d8
2 changed files with 7 additions and 1 deletions
|
|
@ -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…
Reference in a new issue