Skip to content

Commit

Permalink
fix: populate entire dscispec (opendatahub-io#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszmajsak authored Oct 4, 2023
1 parent 6ea3441 commit bcc14a0
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,8 @@ func (r *DataScienceClusterReconciler) Reconcile(ctx context.Context, req ctrl.R
return ctrl.Result{}, nil
}
case 1:
// Set Applications namespace defined in DSCInitialization
r.DataScienceCluster.DSCISpec.ApplicationsNamespace = dsciInstances.Items[0].Spec.ApplicationsNamespace
r.DataScienceCluster.DSCISpec.DevFlags.ManifestsUri = dsciInstances.Items[0].Spec.DevFlags.ManifestsUri
dscInitializationSpec := dsciInstances.Items[0].Spec
dscInitializationSpec.DeepCopyInto(r.DataScienceCluster.DSCISpec)
default:
return ctrl.Result{}, errors.New("only one instance of DSCInitialization object is allowed")
}
Expand Down

0 comments on commit bcc14a0

Please sign in to comment.