Skip to content

Commit

Permalink
Merge pull request kaytu-io#201 from kaytu-io/fix-plugin-installation
Browse files Browse the repository at this point in the history
fix: Fixes map
  • Loading branch information
salehkhazaei authored Jun 11, 2024
2 parents 41965be + d9b7559 commit 2ec536b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions view/non_interactive_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,10 @@ func (v *NonInteractiveView) exportCustomCsv(items []*golang.ChartOptimizationIt
func convertOptimizeJson(items []*golang.ChartOptimizationItem) []PluginResult {
var mappedItems []PluginResult
for _, i := range items {
item := PluginResult{}
item := PluginResult{
Properties: map[string]string{},
Resources: nil,
}
for key, value := range i.OverviewChartRow.Values {
if strings.HasPrefix(key, "x_kaytu") {
continue
Expand All @@ -449,7 +452,10 @@ func convertOptimizeJson(items []*golang.ChartOptimizationItem) []PluginResult {
}
resources := make(map[string]PluginResourceResult)
for _, d := range i.DevicesChartRows {
resource := PluginResourceResult{}
resource := PluginResourceResult{
Overview: map[string]string{},
Details: map[string]PluginResourceDetails{},
}
for key, value := range d.Values {
if strings.HasPrefix(key, "x_kaytu") {
continue
Expand Down

0 comments on commit 2ec536b

Please sign in to comment.