Skip to content

Commit

Permalink
fix: default chart values
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Jun 9, 2022
1 parent e6107fd commit 230fea4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/kontinuous/src/build/load-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,11 @@ const registerSubcharts = async (chart, chartsDirName, target)=>{

const buildChartFile = async (target, name)=>{
const chartFile = `${target}/Chart.yaml`
let chart
const chart = createChart(name)
if(await fs.pathExists(chartFile)){
chart = yaml.load(await fs.readFile(chartFile))
const extendChart = yaml.load(await fs.readFile(chartFile))
Object.assign(chart, extendChart)
chart.name = name
} else {
chart = createChart(name)
}
await registerSubcharts(chart, dependenciesDirName, target)
await fs.ensureDir(target)
Expand Down

0 comments on commit 230fea4

Please sign in to comment.