Skip to content

Commit

Permalink
fix: panics with subcharts
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Lesikov <[email protected]>
  • Loading branch information
ilya-lesikov committed Dec 23, 2024
1 parent 0f6e85a commit d6097f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/chart/loader/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ func LoadFiles(files []*BufferedFile, options LoadOptions) (*chart.Chart, error)
subchartOptions.ChartExtender = options.SubchartExtenderFactoryFunc()
subchartOptions.SubchartExtenderFactoryFunc = options.SubchartExtenderFactoryFunc
}
subchartOptions.SecretsRuntimeDataFactoryFunc = options.SecretsRuntimeDataFactoryFunc
sc, err = LoadArchiveWithOptions(bytes.NewBuffer(file.Data), subchartOptions)
default:
// We have to trim the prefix off of every file, and ignore any file
Expand All @@ -313,6 +314,7 @@ func LoadFiles(files []*BufferedFile, options LoadOptions) (*chart.Chart, error)
subchartOptions.ChartExtender = options.SubchartExtenderFactoryFunc()
subchartOptions.SubchartExtenderFactoryFunc = options.SubchartExtenderFactoryFunc
}
subchartOptions.SecretsRuntimeDataFactoryFunc = options.SecretsRuntimeDataFactoryFunc
sc, err = LoadFiles(buff, subchartOptions)
}

Expand Down

0 comments on commit d6097f3

Please sign in to comment.