mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 02:42:22 +08:00
Dashboard: Multi-version builder (#100305)
This commit is contained in:
@ -28,7 +28,7 @@ func NewDashboardLargeObjectSupport(scheme *runtime.Scheme) *apistore.BasicLarge
|
||||
}
|
||||
old := dash.Spec.Object
|
||||
spec := commonV0.Unstructured{Object: make(map[string]any)}
|
||||
dash.Spec = spec
|
||||
dash.Spec = dashboard.DashboardSpec{Unstructured: spec}
|
||||
dash.SetManagedFields(nil) // this could be bigger than the object!
|
||||
|
||||
keep := []string{"title", "description", "tags", "schemaVersion"}
|
||||
|
Reference in New Issue
Block a user