Skip to content

Commit cce3d67

Browse files
committed
Fix support of helm-secrets plugin
1 parent 5d58b29 commit cce3d67

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/helm/get-chart-context.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export async function getChartContext(
3636
release: string,
3737
tmpDir: string,
3838
chartDir: string,
39+
commands: readonly string[],
3940
args: readonly string[]
4041
): Promise<ChartContext> {
4142
const getValuesChartDir = path.join(tmpDir, "get-values-chart")
@@ -63,11 +64,12 @@ export async function getChartContext(
6364
const cmd = Deno.run({
6465
cmd: [
6566
helm,
67+
commands.includes("secrets") ? "secrets" : "",
6668
"template",
6769
release,
6870
getValuesChartDir,
6971
...parseHelmTemplateArgs(args),
70-
],
72+
].filter(Boolean),
7173
stdout: "piped",
7274
stderr: "piped",
7375
})

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ async function main() {
135135
releaseName,
136136
tmpDir,
137137
tmpChartPath,
138+
command,
138139
args
139140
)
140141
debug(`Chart context:\n${JSON.stringify(chartContext, null, 2)}`)

0 commit comments

Comments
 (0)