Skip to content

Commit fe43b0d

Browse files
committed
[chore] ignore absent chart file
Signed-off-by: Stepan Paksashvili <stepan.paksashvili@flant.com>
1 parent 4eb4a8f commit fe43b0d

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

pkg/helm/nelm/nelm.go

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -381,20 +381,21 @@ func (c *NelmClient) Render(releaseName, modulePath string, valuesPaths, setValu
381381
}
382382

383383
chartRenderResult, err := c.actions.ChartRender(context.TODO(), action.ChartRenderOptions{
384-
OutputFilePath: "/dev/null", // No output file, we want to return the manifest as a string
385-
Chart: modulePath,
386-
DefaultChartName: releaseName,
387-
DefaultChartVersion: "0.2.0",
388-
ExtraLabels: c.labels,
389-
ExtraAnnotations: extraAnnotations,
390-
KubeContext: c.opts.KubeContext,
391-
ReleaseName: releaseName,
392-
ReleaseNamespace: namespace,
393-
ReleaseStorageDriver: c.opts.HelmDriver,
394-
Remote: true,
395-
ValuesFilesPaths: valuesPaths,
396-
ValuesSets: setValues,
397-
ForceAdoption: true,
384+
OutputFilePath: "/dev/null", // No output file, we want to return the manifest as a string
385+
Chart: modulePath,
386+
DefaultChartName: releaseName,
387+
DefaultChartVersion: "0.2.0",
388+
DefaultChartAPIVersion: "v2",
389+
ExtraLabels: c.labels,
390+
ExtraAnnotations: extraAnnotations,
391+
KubeContext: c.opts.KubeContext,
392+
ReleaseName: releaseName,
393+
ReleaseNamespace: namespace,
394+
ReleaseStorageDriver: c.opts.HelmDriver,
395+
Remote: true,
396+
ValuesFilesPaths: valuesPaths,
397+
ValuesSets: setValues,
398+
ForceAdoption: true,
398399
})
399400
if err != nil {
400401
if !debug {

0 commit comments

Comments
 (0)