Skip to content

Commit

Permalink
feat: copy DSCDashboard from DataScienceCluster
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli committed Oct 15, 2024
1 parent d313394 commit e034591
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions controllers/components/dashboard_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import (
"sigs.k8s.io/controller-runtime/pkg/predicate"
"sigs.k8s.io/controller-runtime/pkg/reconcile"

"github.com/opendatahub-io/opendatahub-operator/v2/apis/components"
componentsv1 "github.com/opendatahub-io/opendatahub-operator/v2/apis/components/v1"
dscv1 "github.com/opendatahub-io/opendatahub-operator/v2/apis/datasciencecluster/v1"
dsciv1 "github.com/opendatahub-io/opendatahub-operator/v2/apis/dscinitialization/v1"
Expand Down Expand Up @@ -127,12 +126,7 @@ func CreateDashboardInstance(dsc *dscv1.DataScienceCluster) *componentsv1.Dashbo
Name: DashboardInstanceName,
},
Spec: componentsv1.DashboardSpec{
DSCDashboard: componentsv1.DSCDashboard{
Component: components.Component{
ManagementState: dsc.Spec.Components.Dashboard.ManagementState,
DevFlags: dsc.Spec.Components.Dashboard.DevFlags,
},
},
DSCDashboard: dsc.Spec.Components.Dashboard,
},
}
}
Expand Down

0 comments on commit e034591

Please sign in to comment.