Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit bca8e9e

Browse files
edaenabnookala
authored andcommitted
spk reconcile should add type helm
1 parent 2fe8df5 commit bca8e9e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/commands/hld/reconcile.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ describe("addChartToRing", () => {
174174
};
175175

176176
/* tslint:disable-next-line: no-string-literal */
177-
const addHelmChartCommand = `fab add chart --source ${git} --path ${path} --branch ${branch}`;
177+
const addHelmChartCommand = `fab add chart --source ${git} --path ${path} --branch ${branch} --type helm`;
178178

179179
const expectedInvocation = `cd ${ringPath} && ${addHelmChartCommand}`;
180180

@@ -204,7 +204,7 @@ describe("addChartToRing", () => {
204204
};
205205

206206
/* tslint:disable-next-line: no-string-literal */
207-
const addHelmChartCommand = `fab add chart --source ${git} --path ${path} --version ${sha}`;
207+
const addHelmChartCommand = `fab add chart --source ${git} --path ${path} --version ${sha} --type helm`;
208208

209209
const expectedInvocation = `cd ${ringPath} && ${addHelmChartCommand}`;
210210

@@ -232,7 +232,7 @@ describe("addChartToRing", () => {
232232
};
233233

234234
/* tslint:disable-next-line: no-string-literal */
235-
const addHelmChartCommand = `fab add chart --source ${repository} --path ${chart}`;
235+
const addHelmChartCommand = `fab add chart --source ${repository} --path ${chart} --type helm`;
236236

237237
const expectedInvocation = `cd ${ringPath} && ${addHelmChartCommand}`;
238238

src/commands/hld/reconcile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,9 @@ export const addChartToRing = async (
363363
if ("git" in chart) {
364364
const chartVersioning =
365365
"branch" in chart ? `--branch ${chart.branch}` : `--version ${chart.sha}`;
366-
addHelmChartCommand = `fab add chart --source ${chart.git} --path ${chart.path} ${chartVersioning}`;
366+
addHelmChartCommand = `fab add chart --source ${chart.git} --path ${chart.path} ${chartVersioning} --type helm`;
367367
} else if ("repository" in chart) {
368-
addHelmChartCommand = `fab add chart --source ${chart.repository} --path ${chart.chart}`;
368+
addHelmChartCommand = `fab add chart --source ${chart.repository} --path ${chart.chart} --type helm`;
369369
}
370370

371371
await execCmd(`cd ${ringPathInHld} && ${addHelmChartCommand}`);

0 commit comments

Comments
 (0)