Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/editor/chart_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func loadEditorModel(kc client.Client, reg repo.IRegistry, chartRef releasesapi.
return nil, err
}

return EditorChartValueManifest(kc, &app, opts.Metadata, chrt.Chart.Values)
return EditorChartValueManifest(kc, &app, opts.Metadata, chrt.Values)
}

func EditorChartValueManifest(kc client.Client, app *driversapi.AppRelease, mt releasesapi.Metadata, values map[string]any) (*releasesapi.EditorTemplate, error) {
Expand Down
11 changes: 10 additions & 1 deletion pkg/fusion/fusion.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,16 @@ func NewCmdFuse() *cobra.Command {
}
cp.Object["metadata"] = md

resourceValues[rsKey] = cp
// For fusion charts, keep only the apiVersion, kind and metadata
// fields in values.yaml. The rest of the fields are sourced from
// the resource's schema defaults.
resourceValues[rsKey] = &unstructured.Unstructured{
Object: map[string]any{
"apiVersion": cp.GetAPIVersion(),
"kind": cp.GetKind(),
"metadata": md,
},
}

// schema
gvr, err := registry.GVR(cp.GetObjectKind().GroupVersionKind())
Expand Down
Loading