Skip to content

Commit d7ad9af

Browse files
committed
Change renderer templates path and add importing in main chart
1 parent 188d785 commit d7ad9af

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/deno/render-chart.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ export async function renderDenoChart(
7474
const denoResources = JSON.parse(new TextDecoder().decode(output))
7575
const templates = denoResources.map(stringifyResource).join("\n---\n")
7676
await Deno.writeTextFile(
77-
path.join(templateFolderPath, `rendered-deno-templates.yaml`),
77+
path.join(templateFolderPath, `import-rendered-templates.yaml`),
78+
'{{ .Files.Get "rendered-deno-templates.yaml" }}'
79+
)
80+
await Deno.writeTextFile(
81+
path.join(chartPath, `rendered-deno-templates.yaml`),
7882
templates
7983
)
8084
}

0 commit comments

Comments
 (0)