File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff 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 } )
Original file line number Diff line number Diff 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 ) } ` )
You can’t perform that action at this time.
0 commit comments