From 584d8756728f14ea771ed41d7ee46f884833a259 Mon Sep 17 00:00:00 2001 From: devthejo Date: Thu, 9 Jun 2022 23:41:19 +0200 Subject: [PATCH] fix: default chart dependencies condition --- packages/kontinuous/src/build/load-dependencies.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/kontinuous/src/build/load-dependencies.js b/packages/kontinuous/src/build/load-dependencies.js index 80f1303b8a..6f95f9ea25 100644 --- a/packages/kontinuous/src/build/load-dependencies.js +++ b/packages/kontinuous/src/build/load-dependencies.js @@ -65,6 +65,12 @@ const buildChartFile = async (target, name)=>{ const extendChart = yaml.load(await fs.readFile(chartFile)) Object.assign(chart, extendChart) chart.name = name + for(const dep of chart.dependencies){ + if(dep.condition){ + continue + } + dep.condition = `${dep.alias || dep.name}.enabled` + } } await registerSubcharts(chart, dependenciesDirName, target) await fs.ensureDir(target)