Skip to content

Commit

Permalink
fix: default chart dependencies condition
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Jun 9, 2022
1 parent 230fea4 commit 584d875
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/kontinuous/src/build/load-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 584d875

Please sign in to comment.