Skip to content

Commit

Permalink
update PR
Browse files Browse the repository at this point in the history
Signed-off-by: Vinayak Kukreja <[email protected]>
  • Loading branch information
vinayak-kukreja committed Sep 27, 2023
1 parent 3deac09 commit c3209ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/import/helm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ export class ImportHelm extends ImportBase {
this.tmpDir = pullHelmRepo(chartUrl, chartName, chartVersion);

const chartYamlFilePath = path.join(this.tmpDir, this.chartName, CHART_YAML);
if (!fs.existsSync(chartYamlFilePath)) {
throw new Error(`The path to chart.yaml does not exists: ${chartYamlFilePath}`);
}
const contents = Yaml.load(chartYamlFilePath);
if (contents && contents.length === 1) {
for (const dependency of contents[0].dependencies) {
Expand Down

0 comments on commit c3209ad

Please sign in to comment.