Skip to content

Commit 1146637

Browse files
committed
only use default-dsci namespace when available
Signed-off-by: Saad Zaher <[email protected]>
1 parent 4d1fd3a commit 1146637

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: pkg/controllers/raycluster_controller.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,9 @@ func (r *RayClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request)
281281
kubeRayNamespaces = []string{"opendatahub", "redhat-ods-applications"}
282282
} else if err != nil {
283283
return ctrl.Result{}, err
284+
} else {
285+
kubeRayNamespaces = []string{dsci.Spec.ApplicationsNamespace}
284286
}
285-
kubeRayNamespaces = []string{dsci.Spec.ApplicationsNamespace}
286287

287288
}
288289

0 commit comments

Comments
 (0)